diff options
author | nyamatongwe <devnull@localhost> | 2010-07-13 21:42:19 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2010-07-13 21:42:19 +1000 |
commit | 1adf502dba4ec326dd29d55a6ca94d26916cbaef (patch) | |
tree | 197fa1ebc18047b06fec452259483e3846ce1753 | |
parent | 0f8368b69dc3fd123dab6f0e06ec3f735fd14eb8 (diff) | |
download | scintilla-mirror-1adf502dba4ec326dd29d55a6ca94d26916cbaef.tar.gz |
Changed to match new lexer code in LexCPP.cxx.
-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"): |