]> git.donarmstrong.com Git - lilypond.git/blobdiff - python/convertrules.py
Issue 4068: Add a convert-ly rule for xxx #'yyy #'zzz = -> xxx.yyy.zzz =
[lilypond.git] / 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,