diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/LexCSS.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/LexCSS.cxx b/src/LexCSS.cxx index 618d637e2..7192ac949 100644 --- a/src/LexCSS.cxx +++ b/src/LexCSS.cxx @@ -24,7 +24,7 @@ static inline bool IsAWordChar(const unsigned int ch) { - return (isalnum(ch) || ch == '-' || ch >= 161); + return (isalnum(ch) || ch == '-' || ch == '_' || ch >= 161); // _ is not in fact correct CSS word-character } inline bool IsCssOperator(const char ch) { @@ -99,7 +99,7 @@ static void ColouriseCssDoc(unsigned int startPos, int length, int initStyle, Wo sc.SetState(SCE_CSS_DEFAULT); break; case ':': - if (lastState == SCE_CSS_TAG || lastState == SCE_CSS_DEFAULT || lastState == SCE_CSS_CLASS || lastState == SCE_CSS_ID) + if (lastState == SCE_CSS_TAG || lastState == SCE_CSS_PSEUDOCLASS || lastState == SCE_CSS_DEFAULT || lastState == SCE_CSS_CLASS || lastState == SCE_CSS_ID) sc.SetState(SCE_CSS_PSEUDOCLASS); else if (lastState == SCE_CSS_IDENTIFIER || lastState == SCE_CSS_UNKNOWN_IDENTIFIER) sc.SetState(SCE_CSS_VALUE); |