diff options
author | nyamatongwe <devnull@localhost> | 2003-04-18 00:36:09 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2003-04-18 00:36:09 +0000 |
commit | 3c0811532a6c9e1ca29e90a90a8686359ee30b33 (patch) | |
tree | e6c6c019d52397992986268424f2b8ee51538191 /src | |
parent | fd50e761a29276364a527e888bdf9b771d113625 (diff) | |
download | scintilla-mirror-3c0811532a6c9e1ca29e90a90a8686359ee30b33.tar.gz |
Batch from Biswapesh to add another keyword set for the cpp lexer.
Diffstat (limited to 'src')
-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, }; |