diff options
author | nyamatongwe <unknown> | 2002-10-26 05:28:27 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2002-10-26 05:28:27 +0000 |
commit | e6f0c74c5b1fba01dfe15646fcf8c5ec968b0ea9 (patch) | |
tree | d04f3be5b95ef2640fcdc1f1a72bf7504d823201 /src | |
parent | d95bafd568103fccaae972069dcf0da113ab872d (diff) | |
download | scintilla-mirror-e6f0c74c5b1fba01dfe15646fcf8c5ec968b0ea9.tar.gz |
Patch from Philippe to handle tabs and spaces in preprocessor lines
correctly.
Diffstat (limited to 'src')
-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 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); } |