diff options
author | nyamatongwe <unknown> | 2002-08-02 04:36:43 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2002-08-02 04:36:43 +0000 |
commit | 0a42f39c2ede3efac29478571a9713f20294f7e8 (patch) | |
tree | 5c7841aa87f0146066e11e455fa377fc3523b855 | |
parent | b44276b2e5b823e254b6dfe06ca19ba45c64c223 (diff) | |
download | scintilla-mirror-0a42f39c2ede3efac29478571a9713f20294f7e8.tar.gz |
Jump out of preprocessor mode when a comment, // or /*, is found.
-rw-r--r-- | src/LexCPP.cxx | 2 |
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); } } |