aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2008-08-23 01:08:30 +0000
committernyamatongwe <unknown>2008-08-23 01:08:30 +0000
commit6480f2c7d4d22b854eb8203adc5b8ee9629111d4 (patch)
treec09bb528db8730cf5ed8140b327de4ad53122db5 /src
parent3c0e211cd302c89ed24149e37abe9fed36992f22 (diff)
downloadscintilla-mirror-6480f2c7d4d22b854eb8203adc5b8ee9629111d4.tar.gz
Avoid calling isdigit for non-ASCII.
Diffstat (limited to 'src')
-rw-r--r--src/LexAsm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LexAsm.cxx b/src/LexAsm.cxx
index 6a3902d52..17c938420 100644
--- a/src/LexAsm.cxx
+++ b/src/LexAsm.cxx
@@ -149,7 +149,7 @@ static void ColouriseAsmDoc(unsigned int startPos, int length, int initStyle, Wo
if (sc.state == SCE_ASM_DEFAULT) {
if (sc.ch == ';'){
sc.SetState(SCE_ASM_COMMENT);
- } else if (isdigit(sc.ch) || (sc.ch == '.' && isdigit(sc.chNext))) {
+ } else if (isascii(sc.ch) && (isdigit(sc.ch) || (sc.ch == '.' && isascii(sc.chNext) && isdigit(sc.chNext)))) {
sc.SetState(SCE_ASM_NUMBER);
} else if (IsAWordStart(sc.ch)) {
sc.SetState(SCE_ASM_IDENTIFIER);