diff options
author | nyamatongwe <devnull@localhost> | 2003-03-03 09:32:06 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2003-03-03 09:32:06 +0000 |
commit | 52b7049f782f83d9d377aaf507196ff06502c158 (patch) | |
tree | 82fcf050396d9d5f00e4a372a99cfb5e777bae6e /src | |
parent | a74010da70a37f5e4fbaba7b947becf9064c70fa (diff) | |
download | scintilla-mirror-52b7049f782f83d9d377aaf507196ff06502c158.tar.gz |
Patch from Jakub Vrana to handle some out of bounds characters and
repetitive pseudo-classes.
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); |