summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorDavid Kastrup <dak@gnu.org>2014-08-16 23:24:21 +0200
committerDavid Kastrup <dak@gnu.org>2014-08-24 13:18:09 +0200
commit7f34e80b8d8bebfa4b1f3721a12718b04d7e02f4 (patch)
treedb99b7fa25944feec9dba0130f13483ca7d05a5e /python
parentdbb052ff31e25cbb21791363a58271f55d0c5be0 (diff)
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.
Diffstat (limited to 'python')
-rw-r--r--python/convertrules.py6
1 files changed, 6 insertions, 0 deletions
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,