remove last priority, definin text non-starting char
This commit is contained in:
parent
b14137c1fd
commit
ca0e9af4b4
@ -32,7 +32,7 @@ heading: _H _inline{MARKED_TEXT}+ "}}}"
|
|||||||
_H: "{{{"
|
_H: "{{{"
|
||||||
|
|
||||||
_block_tag: pair_block_tag
|
_block_tag: pair_block_tag
|
||||||
| orphan_block_tag
|
| orphan_block_tag
|
||||||
|
|
||||||
pair_block_tag: _PAIR_TAG_ANGLE TAG_NAME ( _OPTION_SEP TAG_OPTION )* ">" start "</" _PURE_TEXT ">" -> tag
|
pair_block_tag: _PAIR_TAG_ANGLE TAG_NAME ( _OPTION_SEP TAG_OPTION )* ">" start "</" _PURE_TEXT ">" -> tag
|
||||||
orphan_block_tag: _ORPHAN_TAG_ANGLE "/"? TAG_NAME ( _OPTION_SEP TAG_OPTION )* ">" -> orphan_tag
|
orphan_block_tag: _ORPHAN_TAG_ANGLE "/"? TAG_NAME ( _OPTION_SEP TAG_OPTION )* ">" -> orphan_tag
|
||||||
@ -40,7 +40,7 @@ orphan_block_tag: _ORPHAN_TAG_ANGLE "/"? TAG_NAME ( _OPTION_SEP TAG_OPTION )* ">
|
|||||||
_PAIR_TAG_ANGLE: /<(?=([0-9A-Za-z_:|,=\/\-\. ]+)>\r?\n[\s\S]+<\/\1>)/
|
_PAIR_TAG_ANGLE: /<(?=([0-9A-Za-z_:|,=\/\-\. ]+)>\r?\n[\s\S]+<\/\1>)/
|
||||||
_ORPHAN_TAG_ANGLE: /<(?=([0-9A-Za-z_:|,=\/\-\. ])+>\r?\n)(?![\s\S]+\<\/\1\>)/
|
_ORPHAN_TAG_ANGLE: /<(?=([0-9A-Za-z_:|,=\/\-\. ])+>\r?\n)(?![\s\S]+\<\/\1\>)/
|
||||||
|
|
||||||
paragraph{text}.-1: ( _inline{text} _N? )+
|
paragraph{text}: _inline{PARAGRAPH_TEXT} _N? ( _inline{text} _N? )*
|
||||||
|
|
||||||
_inline{text}: _inline_tag
|
_inline{text}: _inline_tag
|
||||||
| _link
|
| _link
|
||||||
@ -76,10 +76,20 @@ emphasis: _I ( _inline{MARKED_TEXT} )+ ( "}" | _N )
|
|||||||
_B: /{{(?=[^\{])/
|
_B: /{{(?=[^\{])/
|
||||||
_I: /{(?=[^\{])/
|
_I: /{(?=[^\{])/
|
||||||
|
|
||||||
|
PARAGRAPH_TEXT: / [^\r\n|\-{<]
|
||||||
|
(?:[^\r\n{<](?!
|
||||||
|
[^\[\r\n]*->
|
||||||
|
|\?[^\[\r\n]*\]
|
||||||
|
|\[[^\[\r\n]*\]\]
|
||||||
|
))*
|
||||||
|
| (?:\<(?![0-9A-Za-z_:|,=\/\-\. ]+\>))+
|
||||||
|
| \\{
|
||||||
|
/x
|
||||||
|
|
||||||
TEXT: / (?:[^\r\n{<](?!
|
TEXT: / (?:[^\r\n{<](?!
|
||||||
[^\[\n\r]*->
|
[^\[\r\n]*->
|
||||||
|\?[^\[\n\r]*\]
|
|\?[^\[\r\n]*\]
|
||||||
|\[[^\[\n\r]*\]\]
|
|\[[^\[\r\n]*\]\]
|
||||||
))+
|
))+
|
||||||
| (?:\<(?![0-9A-Za-z_:|,=\/\-\. ]+\>))+
|
| (?:\<(?![0-9A-Za-z_:|,=\/\-\. ]+\>))+
|
||||||
| \\{
|
| \\{
|
||||||
|
@ -38,7 +38,7 @@ Conclut par un {{ {Lorem ipsum} }} dolor sit amet, officia excepteur ex fugiat r
|
|||||||
|
|
||||||
Reprehenderit nostrud nostrud ipsum Lorem est aliquip amet voluptate voluptate dolor minim nulla est accolade impromptue } proident. Du <code>def pythonCode(): pass</code> code python. Nostrud officia {{pariatur}} ut officia. Sit [un lien->https://google.com]irure elit esse lien [?wikipedia] ea nulla sunt ex occaecat texte <del>biffé</del> on dit barré non ? Reprehenderit commodo footnote[[content of footnote]] officia dolor Lorem duis laboris cupidatat officia voluptate.
|
Reprehenderit nostrud nostrud ipsum Lorem est aliquip amet voluptate voluptate dolor minim nulla est accolade impromptue } proident. Du <code>def pythonCode(): pass</code> code python. Nostrud officia {{pariatur}} ut officia. Sit [un lien->https://google.com]irure elit esse lien [?wikipedia] ea nulla sunt ex occaecat texte <del>biffé</del> on dit barré non ? Reprehenderit commodo footnote[[content of footnote]] officia dolor Lorem duis laboris cupidatat officia voluptate.
|
||||||
|
|
||||||
Culpa proident adipisicing id {nulla} nisi laboris ex in Lorem sunt duis officia eiusmod. Aliqua reprehenderit commodo ex non [excepteur] duis unexpected pipe | sunt velit enim. Voluptate laboris sint cupidatat ullamco ut ea consectetur et est culpa et culpa duis.
|
Culpa proident adipisicing id {nulla} nisi laboris ex in Lorem sunt duis officia eiusmod. Aliqua reprehenderit commodo ex non [excepteur] duis unexpected pipe | sunt velit enim. Voluptate laboris sint cupidatat {{strong then}}- dash ullamco ut ea consectetur et est culpa et culpa duis.
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user