aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexGen.py
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-05-05 23:24:58 +0000
committernyamatongwe <devnull@localhost>2010-05-05 23:24:58 +0000
commit10a49700bace0f2f904d3beeefc6c0c36adfb480 (patch)
tree91e205f560319f13d1448120881c800c787163f9 /src/LexGen.py
parentf0cdf0a130026eb4e6b82fc2d4ae7d6da1bd0512 (diff)
downloadscintilla-mirror-10a49700bace0f2f904d3beeefc6c0c36adfb480.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]