aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexCPP.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2002-10-26 05:28:27 +0000
committernyamatongwe <unknown>2002-10-26 05:28:27 +0000
commite6f0c74c5b1fba01dfe15646fcf8c5ec968b0ea9 (patch)
treed04f3be5b95ef2640fcdc1f1a72bf7504d823201 /src/LexCPP.cxx
parentd95bafd568103fccaae972069dcf0da113ab872d (diff)
downloadscintilla-mirror-e6f0c74c5b1fba01dfe15646fcf8c5ec968b0ea9.tar.gz
Patch from Philippe to handle tabs and spaces in preprocessor lines
correctly.
Diffstat (limited to 'src/LexCPP.cxx')
-rw-r--r--src/LexCPP.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LexCPP.cxx b/src/LexCPP.cxx
index 411f33d10..ab8316949 100644
--- a/src/LexCPP.cxx
+++ b/src/LexCPP.cxx
@@ -245,7 +245,7 @@ static void ColouriseCppDoc(unsigned int startPos, int length, int initStyle, Wo
// Skip whitespace between # and preprocessor word
do {
sc.Forward();
- } while ((sc.ch == ' ') && (sc.ch == '\t') && sc.More());
+ } while ((sc.ch == ' ' || sc.ch == '\t') && sc.More());
if (sc.atLineEnd) {
sc.SetState(SCE_C_DEFAULT);
}