[Libreoffice-commits] core.git: wizards/source
Jean-Pierre Ledure
jp at ledure.be
Fri Nov 3 11:40:01 UTC 2017
wizards/source/access2base/Module.xba | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 42d7a388989d57928a31e62999eb623366a485f0
Author: Jean-Pierre Ledure <jp at ledure.be>
Date: Fri Nov 3 12:37:20 2017 +0100
Access2Base - Correct error in module parsing
Error occurs when an unclosed string is present in a comment
diff --git a/wizards/source/access2base/Module.xba b/wizards/source/access2base/Module.xba
index 4e6156c81b9f..b26ba837936c 100644
--- a/wizards/source/access2base/Module.xba
+++ b/wizards/source/access2base/Module.xba
@@ -445,7 +445,7 @@ Private Function _FindPattern(ByVal psPattern As Variant, Optional ByRef plStart
' Common patterns
Const cstComment = "('|\bREM\b)[^\n]*$"
-Const cstString = """[^""]*"""
+Const cstString = """[^""\n]*"""
Const cstBeginStatement = "(^|:|\bthen\b|\belse\b|\n)[ \t]*"
Const cstEndStatement = "[ \t]*($|:|\bthen\b|\belse\b|\n)"
Const cstContinuation = "[ \t]_\n"
More information about the Libreoffice-commits
mailing list