summaryrefslogtreecommitdiff
path: root/librelogo
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2013-02-07 10:53:35 +0100
committerLászló Németh <nemeth@numbertext.org>2013-02-07 10:53:35 +0100
commitaf29c96b049fa313bdc80de618e9acb127882400 (patch)
treee91c3bc6e1eb8e4e750f173f73a3e08dcc73e014 /librelogo
parentf447854d0cd92647c66871bdc4b3d1f601f25382 (diff)
fdo#60406 librelogo: fix name conflict in procedure handling
Change-Id: I05efe58e38b7c2183ecc733b6db45ec6fa04cab7
Diffstat (limited to 'librelogo')
-rw-r--r--librelogo/source/LibreLogo/LibreLogo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/librelogo/source/LibreLogo/LibreLogo.py b/librelogo/source/LibreLogo/LibreLogo.py
index 3dc6140d8564..f797758af639 100644
--- a/librelogo/source/LibreLogo/LibreLogo.py
+++ b/librelogo/source/LibreLogo/LibreLogo.py
@@ -1368,7 +1368,7 @@ def __compil__(s):
# add line breaks before procedure calls
procedures = set(subnames) - set(functions)
if len(procedures) > 0:
- s = re.sub(r"(?<!__def__)(?<![-+=*/])(?<!%s)(?:^|[ \t]+)(" % ")(?<!".join(functions) + "|".join(procedures) + ")", r"\n\1", s)
+ s = re.sub(r"(?<!__def__)(?<![-+=*/])(?<!%s)(?:^|[ \t]+)(" % ")(?<!".join(functions) + "|".join(procedures) + ")(?!\w)", r"\n\1", s)
# compile native Logo
for i in __comp__[_.lng]: