allowing || in line quotes
authorVolker Birk <vb@pep.foundation>
Tue, 20 Nov 2018 22:35:22 +0100
changeset 23 f2e8837da4e9
parent 22 3a2bd70c01df
child 24 1cb8f7566a07
allowing || in line quotes
heading.en.yhtml2
yml2.py
yml2c
yml2proc
--- a/heading.en.yhtml2	Wed Aug 29 23:57:58 2018 +0200
+++ b/heading.en.yhtml2	Tue Nov 20 22:35:22 2018 +0100
@@ -13,7 +13,7 @@
 div id=headline {
     p > YML – Why a Markup Language?!
     div class=small {
-        "YML 2.5.8 of We 29 Aug 2018  –  Copyleft 2007-2018, "
+        "YML 2.5.9 of Tu 20 Nov 2018  –  Copyleft 2007-2018, "
         a "http://blog.fdik.org", "Volker Birk";
         " – "
         a "http://fdik.org/yml2.tar.bz2", "Download YML 2";
--- a/yml2.py	Wed Aug 29 23:57:58 2018 +0200
+++ b/yml2.py	Tue Nov 20 22:35:22 2018 +0100
@@ -1,4 +1,4 @@
-# YML 2.5.8 language definition
+# YML 2.5.9 language definition
 
 # written by VB.
 
@@ -77,7 +77,7 @@
 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'(\|\|(\>*)(.*?)\|\|(\>*))\s*$', re.S | re.M)
 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
--- a/yml2c	Wed Aug 29 23:57:58 2018 +0200
+++ b/yml2c	Tue Nov 20 22:35:22 2018 +0100
@@ -2,8 +2,8 @@
 # vim: set fileencoding=utf-8 :
 
 """\
-YML 2 compiler version 5.8
-Copyleft (c), 2009-2011, Volker Birk  http://fdik.org/yml/
+YML 2 compiler version 5.9
+Copyleft (c), 2009-2018, Volker Birk  http://fdik.org/yml/
 
 """
 
--- a/yml2proc	Wed Aug 29 23:57:58 2018 +0200
+++ b/yml2proc	Tue Nov 20 22:35:22 2018 +0100
@@ -2,8 +2,8 @@
 # vim: set fileencoding=utf-8 :
 
 """\
-YML/YSLT 2 processor version 5.8
-Copyleft (c), 2009-2011 Volker Birk  http://fdik.org/yml/
+YML/YSLT 2 processor version 5.9
+Copyleft (c), 2009-2018 Volker Birk  http://fdik.org/yml/
 
 """