aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexGen.py
diff options
context:
space:
mode:
authornyamatongwe <unknown>2010-05-05 23:24:58 +0000
committernyamatongwe <unknown>2010-05-05 23:24:58 +0000
commit36c1da5ae635b6904d53cdfb3d186f2e52716def (patch)
tree91e205f560319f13d1448120881c800c787163f9 /src/LexGen.py
parentaf86ae121bf2a2d03c5128c8ec0fec60885ba0de (diff)
downloadscintilla-mirror-36c1da5ae635b6904d53cdfb3d186f2e52716def.tar.gz
Ensure script does not fail when GetProperty on a line without quoted string.
Diffstat (limited to 'src/LexGen.py')
-rw-r--r--src/LexGen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LexGen.py b/src/LexGen.py
index c73699c58..c5ea8001c 100644
--- a/src/LexGen.py
+++ b/src/LexGen.py
@@ -181,7 +181,7 @@ def FindProperties(lexFile):
properties = {}
f = open(lexFile)
for l in f.readlines():
- if "GetProperty" in l:
+ if "GetProperty" in l and '"' in l:
l = l.strip()
if not l.startswith("//"): # Drop comments
propertyName = l.split("\"")[1]