diff options
author | nyamatongwe <devnull@localhost> | 2002-10-26 05:28:27 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2002-10-26 05:28:27 +0000 |
commit | a13adb41b31a48649fba263cc3c77524e0280294 (patch) | |
tree | d04f3be5b95ef2640fcdc1f1a72bf7504d823201 /src/LexCPP.cxx | |
parent | 07c3b766e7f2bac16332b102c59b7bac633add76 (diff) | |
download | scintilla-mirror-a13adb41b31a48649fba263cc3c77524e0280294.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.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); } |