From: David Kastrup Date: Sat, 16 Aug 2014 21:24:21 +0000 (+0200) Subject: Issue 4068: Add a convert-ly rule for xxx #'yyy #'zzz = -> xxx.yyy.zzz = X-Git-Tag: release/2.19.13-1~23 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=7f34e80b8d8bebfa4b1f3721a12718b04d7e02f4;p=lilypond.git Issue 4068: Add a convert-ly rule for xxx #'yyy #'zzz = -> xxx.yyy.zzz = Alist assignments can also use symbol list syntax as of issue 3748. So the examples for nested layout variable assignments should actually use those. --- diff --git a/python/convertrules.py b/python/convertrules.py index c506bc1542..7809041353 100644 --- a/python/convertrules.py +++ b/python/convertrules.py @@ -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,