From 7f34e80b8d8bebfa4b1f3721a12718b04d7e02f4 Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Sat, 16 Aug 2014 23:24:21 +0200 Subject: [PATCH] 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. --- python/convertrules.py | 6 ++++++ 1 file changed, 6 insertions(+) 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, -- 2.39.5