diff options
-rw-r--r-- | lexers/LexCPP.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lexers/LexCPP.cxx b/lexers/LexCPP.cxx index b8cc706e7..d6efa7ee0 100644 --- a/lexers/LexCPP.cxx +++ b/lexers/LexCPP.cxx @@ -379,6 +379,12 @@ public: int SCI_METHOD LexerCPP::PropertySet(const char *key, const char *val) { if (osCPP.PropertySet(&options, key, val)) { + if (strcmp(key, "lexer.cpp.allow.dollars") == 0) { + setWord = CharacterSet(CharacterSet::setAlphaNum, "._", 0x80, true); + if (options.identifiersAllowDollars) { + setWord.Add('$'); + } + } return 0; } return -1; @@ -453,7 +459,6 @@ void SCI_METHOD LexerCPP::Lex(unsigned int startPos, int length, int initStyle, if (options.identifiersAllowDollars) { setWordStart.Add('$'); - setWord.Add('$'); } int chPrevNonWhite = ' '; |