diff options
author | nyamatongwe <devnull@localhost> | 2008-09-21 11:30:29 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2008-09-21 11:30:29 +0000 |
commit | 1c18c49e4337fe984bf354d50a0f06988fc0e399 (patch) | |
tree | ed352b8ef10e6c2bf06434d4b724ad63fe509029 /src | |
parent | 13b6069018797a0b2a7c0f29be5e0026013aeffa (diff) | |
download | scintilla-mirror-1c18c49e4337fe984bf354d50a0f06988fc0e399.tar.gz |
Fix from Jason Oster for bug #2114532: CSS2 identifier syntax highlighting
bug.
Diffstat (limited to 'src')
-rw-r--r-- | src/LexCSS.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/LexCSS.cxx b/src/LexCSS.cxx index 73f419cf5..b07742ae1 100644 --- a/src/LexCSS.cxx +++ b/src/LexCSS.cxx @@ -194,19 +194,14 @@ static void ColouriseCssDoc(unsigned int startPos, int length, int initStyle, Wo s2++; switch (sc.state) { case SCE_CSS_IDENTIFIER: - if (!keywords.InList(s2)) { - if (keywords2.InList(s2)) { - sc.ChangeState(SCE_CSS_IDENTIFIER2); - } else { - sc.ChangeState(SCE_CSS_UNKNOWN_IDENTIFIER); - } - } - break; + case SCE_CSS_IDENTIFIER2: case SCE_CSS_UNKNOWN_IDENTIFIER: if (keywords.InList(s2)) sc.ChangeState(SCE_CSS_IDENTIFIER); else if (keywords2.InList(s2)) sc.ChangeState(SCE_CSS_IDENTIFIER2); + else + sc.ChangeState(SCE_CSS_UNKNOWN_IDENTIFIER); break; case SCE_CSS_PSEUDOCLASS: if (!pseudoClasses.InList(s2)) |