higher priority for separators over pure text

This commit is contained in:
Guilhem Fauré 2023-04-26 15:04:58 +02:00
parent 3fe19a8ec6
commit 06dc438038
2 changed files with 4 additions and 3 deletions

View File

@ -9,7 +9,7 @@ start: _N? block ( _N+ block )+ _N*
heading: "{{{" ( TEXT | link | nested_italic | nested_bold ) "}}}" -> h2
SEPARATOR: "----" "-"*
SEPARATOR.9: "----" "-"*
unordered_list: ( "-*" list_element _N )+ -> ul
ordered_list: ( "-#" list_element _N )+ -> ol
@ -53,4 +53,4 @@ wikipedia_query: TEXT -> query
// Pure text :
// - Never contains line breaks
// - Never contains curly braces
TEXT: /[^\r\n\{\}]/+
TEXT.0: /[^\r\n\{\}]/+

View File

@ -14,7 +14,8 @@ Un lien [lark->https://lark-parser.readthedocs.io]
[lark->https://lark-parser.readthedocs.io]
---- ---
----
---
{{{Short CV}}}