From e6f0c74c5b1fba01dfe15646fcf8c5ec968b0ea9 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 26 Oct 2002 05:28:27 +0000 Subject: Patch from Philippe to handle tabs and spaces in preprocessor lines correctly. --- src/LexCPP.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.3