aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexCPP.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-01-15 10:37:34 +1100
committerNeil <nyamatongwe@gmail.com>2019-01-15 10:37:34 +1100
commit1d055f5b839ddce03636f65c901fd59e304f5a42 (patch)
tree3db24efbd5fe306f2a3574b2e3d0eb5eaeea0bda /lexers/LexCPP.cxx
parent8cae5f3edf4c24a34446aeb9e4597747359358fd (diff)
downloadscintilla-mirror-1d055f5b839ddce03636f65c901fd59e304f5a42.tar.gz
Treat "#if(" as preprocessor directive "#if" followed by operator "(".
Diffstat (limited to 'lexers/LexCPP.cxx')
-rw-r--r--lexers/LexCPP.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexers/LexCPP.cxx b/lexers/LexCPP.cxx
index a9521d683..b768c9a4a 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)) {