diff options
| author | Neil <nyamatongwe@gmail.com> | 2019-01-15 10:37:34 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2019-01-15 10:37:34 +1100 |
| commit | 8a5808c87b93c49e1fca9b730b5e8558d4a55228 (patch) | |
| tree | deda6efced2b142de131e93ea89cc7b9d5767178 /lexers/LexCPP.cxx | |
| parent | ab5c76987236758992f0e7236f04ff527750a98a (diff) | |
| download | scintilla-mirror-8a5808c87b93c49e1fca9b730b5e8558d4a55228.tar.gz | |
Backport: Treat "#if(" as preprocessor directive "#if" followed by operator "(".
Backport of changeset 7233:e08fe2381ca3.
Diffstat (limited to 'lexers/LexCPP.cxx')
| -rw-r--r-- | lexers/LexCPP.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lexers/LexCPP.cxx b/lexers/LexCPP.cxx index d6637784a..e2d47de6f 100644 --- a/lexers/LexCPP.cxx +++ b/lexers/LexCPP.cxx @@ -950,7 +950,7 @@ void SCI_METHOD LexerCPP::Lex(Sci_PositionU startPos, Sci_Position length, int i break; case SCE_C_PREPROCESSOR: if (options.stylingWithinPreprocessor) { - if (IsASpace(sc.ch)) { + if (IsASpace(sc.ch) || (sc.ch == '(')) { sc.SetState(SCE_C_DEFAULT|activitySet); } } else if (isStringInPreprocessor && (sc.Match('>') || sc.Match('\"') || sc.atLineEnd)) { |
