diff options
| author | nyamatongwe <unknown> | 2003-04-18 00:36:09 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2003-04-18 00:36:09 +0000 | 
| commit | b7a69098c1042f5ea40bce3b80f5aee5a9b30dfc (patch) | |
| tree | e6c6c019d52397992986268424f2b8ee51538191 /src/LexCPP.cxx | |
| parent | bd4871d7761828243a5873bd5c0f807d27319d7c (diff) | |
| download | scintilla-mirror-b7a69098c1042f5ea40bce3b80f5aee5a9b30dfc.tar.gz | |
Batch from Biswapesh to add another keyword set for the cpp lexer.
Diffstat (limited to 'src/LexCPP.cxx')
| -rw-r--r-- | src/LexCPP.cxx | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/src/LexCPP.cxx b/src/LexCPP.cxx index 661b968cd..3be8c91f1 100644 --- a/src/LexCPP.cxx +++ b/src/LexCPP.cxx @@ -60,6 +60,7 @@ static void ColouriseCppDoc(unsigned int startPos, int length, int initStyle, Wo  	WordList &keywords = *keywordlists[0];  	WordList &keywords2 = *keywordlists[1];  	WordList &keywords3 = *keywordlists[2]; +	WordList &keywords4 = *keywordlists[3];  	bool stylingWithinPreprocessor = styler.GetPropertyInt("styling.within.preprocessor") != 0; @@ -111,6 +112,8 @@ static void ColouriseCppDoc(unsigned int startPos, int length, int initStyle, Wo  					sc.ChangeState(SCE_C_WORD);  				} else if (keywords2.InList(s)) {  					sc.ChangeState(SCE_C_WORD2); +				} else if (keywords4.InList(s)) { +					sc.ChangeState(SCE_C_GLOBALCLASS);  				}  				sc.SetState(SCE_C_DEFAULT);  			} @@ -597,6 +600,7 @@ static const char * const cppWordLists[] = {              "Secondary keywords and identifiers",              "Documentation comment keywords",              "Fold header keywords", +            "Global classes and typedefs",              0,          }; | 
