]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4068: Add a convert-ly rule for xxx #'yyy #'zzz = -> xxx.yyy.zzz =
authorDavid Kastrup <dak@gnu.org>
Sat, 16 Aug 2014 21:24:21 +0000 (23:24 +0200)
committerDavid Kastrup <dak@gnu.org>
Sun, 24 Aug 2014 11:18:09 +0000 (13:18 +0200)
Alist assignments can also use symbol list syntax as of issue 3748.
So the examples for nested layout variable assignments should actually
use those.

python/convertrules.py

index c506bc15428d37e88832358748d50e7600d72797..7809041353a3f9d909cb7e15da1345b0159bc8a8 100644 (file)
@@ -3723,6 +3723,12 @@ def conv(str):
     str = re.sub (r'\bthin-kern\b', 'segno-kern', str)
     return str
 
+@rule ((2, 19, 12), "var #'prop ... = -> var.prop =")
+def conv(str):
+    str = re.sub (r'(\s)(' + wordsyntax + r"(?:\s+#\s*'\s*"
+                  + wordsyntax + r")+)(?=\s*=)", path_replace, str)
+    return str
+
 # Guidelines to write rules (please keep this at the end of this file)
 #
 # - keep at most one rule per version; if several conversions should be done,