diff options
| -rw-r--r-- | src/LexGen.py | 7 | 
1 files changed, 4 insertions, 3 deletions
diff --git a/src/LexGen.py b/src/LexGen.py index 9219f0d55..529bea06a 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 and '"' in l: +        if ("GetProperty" in l or "DefineProperty" in l) and "\"" in l:              l = l.strip()              if not l.startswith("//"):	# Drop comments                  propertyName = l.split("\"")[1] @@ -230,7 +230,7 @@ def RegenerateAll():      root="../../"      # Find all the lexer source code files -    lexFilePaths = glob.glob(root + "scintilla/src/Lex*.cxx") +    lexFilePaths = glob.glob(root + "scintilla/lexers/Lex*.cxx")      sortListInsensitive(lexFilePaths)      lexFiles = [os.path.basename(f)[:-4] for f in lexFilePaths]      print(lexFiles) @@ -267,7 +267,8 @@ def RegenerateAll():          sortListInsensitive(propFiles)          print(propFiles) -    Regenerate(root + "scintilla/src/KeyWords.cxx", "//", NATIVE, lexerModules) +    Regenerate(root + "scintilla/src/Catalogue.cxx", "//", NATIVE, lexerModules) +      Regenerate(root + "scintilla/win32/scintilla.mak", "#", NATIVE, lexFiles)      Regenerate(root + "scintilla/win32/scintilla_vc6.mak", "#", NATIVE, lexFiles)      if os.path.exists(root + "scite"):  | 
