diff options
| author | nyamatongwe <unknown> | 2010-07-13 21:42:19 +1000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2010-07-13 21:42:19 +1000 | 
| commit | c9470d83041cef70c55190d5e2b2bd283d46b7b5 (patch) | |
| tree | fb89b0eb05b3c01a21c33475e3a7f430a39eefeb /src | |
| parent | 748b59baa47ede785b3fc0f95fe182fc7dba439e (diff) | |
| download | scintilla-mirror-c9470d83041cef70c55190d5e2b2bd283d46b7b5.tar.gz | |
Changed to match new lexer code in LexCPP.cxx.
Diffstat (limited to 'src')
| -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"): | 
