Hotfix on the syntax with ulits
This commit is contained in:
parent
d87f3c127c
commit
1ef5907f0f
|
|
@ -538,12 +538,12 @@ one_display = (
|
||||||
pp.Opt(optional)
|
pp.Opt(optional)
|
||||||
).add_parse_action(of_type(DisplayToken))
|
).add_parse_action(of_type(DisplayToken))
|
||||||
one_olist = pp.line_start + (
|
one_olist = pp.line_start + (
|
||||||
pps(pp.Literal('#.')) + (
|
pps(pp.Combine(pp.line_start + pp.Literal('#.'))) + (
|
||||||
(pp.SkipTo(optional)('text').add_parse_action(reparse(enhanced_text)) + optional) |
|
(pp.SkipTo(optional)('text').add_parse_action(reparse(enhanced_text)) + optional) |
|
||||||
enhanced_text)
|
enhanced_text)
|
||||||
).add_parse_action(of_type(EtOlistToken))
|
).add_parse_action(of_type(EtOlistToken))
|
||||||
one_ulist = pp.line_start + (
|
one_ulist = pp.line_start + (
|
||||||
pps(pp.Literal('-')) + (
|
pps(pp.Combine(pp.line_start + pp.Literal('-'))) + (
|
||||||
(pp.SkipTo(optional)('text').add_parse_action(reparse(enhanced_text)) + optional) |
|
(pp.SkipTo(optional)('text').add_parse_action(reparse(enhanced_text)) + optional) |
|
||||||
enhanced_text)
|
enhanced_text)
|
||||||
).add_parse_action(of_type(EtUlistToken))
|
).add_parse_action(of_type(EtUlistToken))
|
||||||
|
|
|
||||||
|
|
@ -524,6 +524,7 @@ dict_advanced_syntax_input_and_expected_output = {
|
||||||
), __GL()),
|
), __GL()),
|
||||||
("|---|---|", (sy.TableSeparatorToken(["---", "---"]),), __GL()),
|
("|---|---|", (sy.TableSeparatorToken(["---", "---"]),), __GL()),
|
||||||
("- Text", (sy.EtUlistToken([sy.TextToken(["Text"])]),), __GL()),
|
("- Text", (sy.EtUlistToken([sy.TextToken(["Text"])]),), __GL()),
|
||||||
|
(" - Non ulist", (sy.TextToken(["- Non ulist"]),), __GL()),
|
||||||
("div>>", (sy.StructuralElementEndToken(["div"]),), __GL()),
|
("div>>", (sy.StructuralElementEndToken(["div"]),), __GL()),
|
||||||
("body>>", (sy.StructuralElementEndToken(["body"]),), __GL()),
|
("body>>", (sy.StructuralElementEndToken(["body"]),), __GL()),
|
||||||
("#. Text with *em* and __underline__ and {arguments}{{super-arguments}}[a=1, c=2,'ui']", (
|
("#. Text with *em* and __underline__ and {arguments}{{super-arguments}}[a=1, c=2,'ui']", (
|
||||||
|
|
@ -667,6 +668,7 @@ list_of_text_input_and_readable_output = [
|
||||||
|
|
||||||
# Other Mostly for testing and coverage
|
# Other Mostly for testing and coverage
|
||||||
("'", "quotes", "'"),
|
("'", "quotes", "'"),
|
||||||
|
(" -", "line", "-"),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue