diff options
author | László Németh <nemeth@numbertext.org> | 2013-10-28 11:48:33 +0100 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2013-10-28 11:48:33 +0100 |
commit | 850871e04e247262242836180d8a5cf59b2f95ef (patch) | |
tree | ae649a8a5b1ada2aba433c5b6fcbfd435298f7a5 /librelogo | |
parent | 85289911a3d568ac4cb2ecb5b6ec7d11c2d8ab28 (diff) |
fdo#70951 librelogo: fix parsing problem of functions
Change-Id: I2e85a795064ee9e58f3389aec94c942f6ae77612
Diffstat (limited to 'librelogo')
-rw-r--r-- | librelogo/source/LibreLogo/LibreLogo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/librelogo/source/LibreLogo/LibreLogo.py b/librelogo/source/LibreLogo/LibreLogo.py index e030fc816351..33fe172631ad 100644 --- a/librelogo/source/LibreLogo/LibreLogo.py +++ b/librelogo/source/LibreLogo/LibreLogo.py @@ -1595,7 +1595,7 @@ def __compil__(s): (?:[^\n]*(?<!\b(%(END)s))\n)* # 0 or more lines (not END) [^\n]*\b(?:%(OUTPUT)s)\b[^\n]*\n # line with OUTPUT (functions = procedures with OUTPUT) (?:[^\n]*(?<!\b(?:%(END)s))\n)* # 0 or more lines (not END) - (?:%(END)s)\b""" % __l12n__(_.lng), s, re.X) ] # final END (XXX multiple names of "END" doesn't supported) + [ \t]*\b(?:%(END)s)\b""" % __l12n__(_.lng), s, re.X) ] # final END (XXX multiple names of "END" doesn't supported) # add line breaks before procedure calls procedures = set(subnames) - set(functions) if len(procedures) > 0: |