tags can contain blocks

This commit is contained in:
Guilhem Fauré 2023-04-28 16:02:00 +02:00
parent 0dac418e0a
commit afdf034f6e

View File

@ -39,9 +39,9 @@ _inline{text}: text
| anchor | anchor
| tag | tag
TEXT: /(?:[^\r\n\{](?![^\[\n\r]*->))+/ TEXT.-1: /(?:[^\r\n\{](?![^\[\n\r]*->))+/
TABLE_TEXT: /[^\|\r\n\{]+/ TABLE_TEXT.-1: /[^\|\r\n\{]+/
MARKED_TEXT: /[^\}\r\n\{]+/ MARKED_TEXT.-1: /[^\}\r\n\{]+/
strong: _B ( _inline{MARKED_TEXT} )+ ( "}}" | _N ) strong: _B ( _inline{MARKED_TEXT} )+ ( "}}" | _N )
emphasis: _I ( _inline{MARKED_TEXT} )+ ( "}" | _N ) emphasis: _I ( _inline{MARKED_TEXT} )+ ( "}" | _N )
@ -61,13 +61,12 @@ _A: /\[(?=[^\[\n\r]+->)/
HREF: _PURE_TEXT HREF: _PURE_TEXT
A_TEXT: /[^\r\n\{]+?(?=->)/ A_TEXT: /[^\r\n\{]+?(?=->)/
tag: end_tag tag.1: start_tag block? end_tag?
| start_tag
end_tag: _ETAG TAG_NAME ( "|" TAG_OPTION )* ">" start_tag.1: _STAG TAG_NAME ( "|" TAG_OPTION )* ">"
start_tag: _STAG TAG_NAME ( "|" TAG_OPTION )* ">" end_tag.1: _ETAG TAG_NAME ( "|" TAG_OPTION )* ">"
_STAG: "<" _ETAG.1: /<\/(?=[0-9A-Za-z_:\|\/\-\.]+>)/
_ETAG: "</" _STAG.1: /<(?=[0-9A-Za-z_:\|\/\-\.]+>)/
TAG_NAME: _PURE_TEXT TAG_NAME: _PURE_TEXT
TAG_OPTION: _PURE_TEXT TAG_OPTION: _PURE_TEXT