diff options
author | nyamatongwe <unknown> | 2003-03-03 09:32:06 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2003-03-03 09:32:06 +0000 |
commit | 1afb7c1ceabc4a6bb1ab057417a52e8bef093fe9 (patch) | |
tree | 82fcf050396d9d5f00e4a372a99cfb5e777bae6e /src/LexCSS.cxx | |
parent | de0173a13cec6a3f5ccceb50482402a2fad39c71 (diff) | |
download | scintilla-mirror-1afb7c1ceabc4a6bb1ab057417a52e8bef093fe9.tar.gz |
Patch from Jakub Vrana to handle some out of bounds characters and
repetitive pseudo-classes.
Diffstat (limited to 'src/LexCSS.cxx')
-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); |