diff options
author | nyamatongwe <unknown> | 2010-05-13 01:30:06 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2010-05-13 01:30:06 +0000 |
commit | 74d92c0f19f84c9f1f5f9e87130c89484db155f6 (patch) | |
tree | 8eb24653968c21beb97ca0350c3c5fe854bb816e /src/LexCrontab.cxx | |
parent | 9328c929f1e7259ec256f076eba0a47013a5fb62 (diff) | |
download | scintilla-mirror-74d92c0f19f84c9f1f5f9e87130c89484db155f6.tar.gz |
Fix debug assertions for bug #3000566.
Diffstat (limited to 'src/LexCrontab.cxx')
-rw-r--r-- | src/LexCrontab.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/LexCrontab.cxx b/src/LexCrontab.cxx index 62044c370..f6c4d42f1 100644 --- a/src/LexCrontab.cxx +++ b/src/LexCrontab.cxx @@ -94,12 +94,12 @@ static void ColouriseNncrontabDoc(unsigned int startPos, int length, int, WordLi // signals an asterisk // no state jump necessary for this simple case... styler.ColourTo(i,SCE_NNCRONTAB_ASTERISK); - } else if( isalpha(ch) || ch == '<' ) { + } else if( (isascii(ch) && isalpha(ch)) || ch == '<' ) { // signals the start of an identifier bufferCount = 0; buffer[bufferCount++] = ch; state = SCE_NNCRONTAB_IDENTIFIER; - } else if( isdigit(ch) ) { + } else if( isascii(ch) && isdigit(ch) ) { // signals the start of a number bufferCount = 0; buffer[bufferCount++] = ch; @@ -167,7 +167,7 @@ static void ColouriseNncrontabDoc(unsigned int startPos, int length, int, WordLi case SCE_NNCRONTAB_IDENTIFIER: // stay in CONF_IDENTIFIER state until we find a non-alphanumeric - if( isalnum(ch) || (ch == '_') || (ch == '-') || (ch == '/') || + if( (isascii(ch) && isalnum(ch)) || (ch == '_') || (ch == '-') || (ch == '/') || (ch == '$') || (ch == '.') || (ch == '<') || (ch == '>') || (ch == '@') ) { buffer[bufferCount++] = ch; @@ -196,7 +196,7 @@ static void ColouriseNncrontabDoc(unsigned int startPos, int length, int, WordLi case SCE_NNCRONTAB_NUMBER: // stay in CONF_NUMBER state until we find a non-numeric - if( isdigit(ch) /* || ch == '.' */ ) { + if( isascii(ch) && isdigit(ch) /* || ch == '.' */ ) { buffer[bufferCount++] = ch; } else { state = SCE_NNCRONTAB_DEFAULT; |