diff -r 57c1866bd87b -r d937e9d7c4fe yml2.py --- a/yml2.py Thu Sep 21 07:36:15 2017 +0200 +++ b/yml2.py Thu Sep 21 07:36:27 2017 +0200 @@ -1,4 +1,4 @@ -# YML 2.5.3 language definition +# YML 2.5.6 language definition # written by VB. @@ -77,12 +77,13 @@ def constant(): return 0, keyword("define"), [pointer, symbol], "=", literal, 0, [";", "."] def in_ns(): return keyword("in"), xmlSymbol, [_decl, ("{", -2, _decl, "}")] _decl = keyword("decl"), listing(decl), [";", "."] -def textsection(): return r(r'(\|\|(\>*).*?\|\|(\>*))|(\>\>.*?\>\>)', re.S) +def textsection(): return r(r'(\|\|(\>*).*?\|\|(\>*))', re.S) +def textsectionu(): return r(r'(\>\>.*?\>\>)', re.S) def include(): return keyword("include"), 0, reverse, 0, [ktext, kxml], filename, 0, [";", "."] def func(): return _func, 0, content def funclist(): return listing(func) _cmd = funclist, 0, [";", "."] -_inner = [include, textsection, pythonCall, _cmd, quote, lineQuote, tagQuote, pyExp] +_inner = [include, textsection, textsectionu, pythonCall, _cmd, quote, lineQuote, tagQuote, pyExp] _cc = "{", -1, _inner, "}" def content_plain(): return [ (_l, 0, _p, 0, _b, 0, _cc), (_p, 0, _b, 0, _cc), (_b, 0, _cc), _cc ] content_plain.__name__ = "content"