diff options
| author | nyamatongwe <devnull@localhost> | 2002-04-03 01:58:48 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2002-04-03 01:58:48 +0000 | 
| commit | 154254a66aebb4cf40616c0a80c1b57c5560d3c8 (patch) | |
| tree | 7117f177a62465861a86aa3ef40473032d1e687b /src/LexCPP.cxx | |
| parent | 8947d717a43f3026cf3d246e43698d7ba266feaf (diff) | |
| download | scintilla-mirror-154254a66aebb4cf40616c0a80c1b57c5560d3c8.tar.gz | |
Patch from Brian Quinlan to include metdata about keyword lists within
lexers.
Diffstat (limited to 'src/LexCPP.cxx')
| -rw-r--r-- | src/LexCPP.cxx | 11 | 
1 files changed, 9 insertions, 2 deletions
diff --git a/src/LexCPP.cxx b/src/LexCPP.cxx index daf95ea02..40baea9dc 100644 --- a/src/LexCPP.cxx +++ b/src/LexCPP.cxx @@ -319,5 +319,12 @@ static void FoldCppDoc(unsigned int startPos, int length, int initStyle, WordLis  	styler.SetLevel(lineCurrent, levelPrev | flagsNext);  } -LexerModule lmCPP(SCLEX_CPP, ColouriseCppDoc, "cpp", FoldCppDoc); -LexerModule lmTCL(SCLEX_TCL, ColouriseCppDoc, "tcl", FoldCppDoc); +static const char * const cppWordLists[] = { +	"Primary keywords and identifiers", +	"Secondary keywords and identifiers", +	"Documentation comment keywords", +	0, +}; + +LexerModule lmCPP(SCLEX_CPP, ColouriseCppDoc, "cpp", FoldCppDoc, cppWordLists); +LexerModule lmTCL(SCLEX_TCL, ColouriseCppDoc, "tcl", FoldCppDoc, cppWordLists);  | 
