aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2002-08-02 04:36:43 +0000
committernyamatongwe <devnull@localhost>2002-08-02 04:36:43 +0000
commit1b22463319ba303d1c7c11b5afd2a0d3d18750e4 (patch)
tree5c7841aa87f0146066e11e455fa377fc3523b855
parent8c3d04133a3f62b7de96312fea83e290f6474be0 (diff)
downloadscintilla-mirror-1b22463319ba303d1c7c11b5afd2a0d3d18750e4.tar.gz
Jump out of preprocessor mode when a comment, // or /*, is found.
-rw-r--r--src/LexCPP.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LexCPP.cxx b/src/LexCPP.cxx
index c1bb1ff9a..39f458da7 100644
--- a/src/LexCPP.cxx
+++ b/src/LexCPP.cxx
@@ -113,7 +113,7 @@ static void ColouriseCppDoc(unsigned int startPos, int length, int initStyle, Wo
sc.SetState(SCE_C_DEFAULT);
}
} else {
- if (sc.atLineEnd) {
+ if ((sc.atLineEnd) || (sc.Match('/', '*')) || (sc.Match('/', '/'))) {
sc.SetState(SCE_C_DEFAULT);
}
}