aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2008-06-28 11:57:45 +0000
committernyamatongwe <devnull@localhost>2008-06-28 11:57:45 +0000
commit5310d8bab34756524834ff85f395107429fb3b42 (patch)
tree89de239c167e9494490a7403a31881f120277e15
parent91e3a4df19781acf31ea4bd429e44364b2e17e1b (diff)
downloadscintilla-mirror-5310d8bab34756524834ff85f395107429fb3b42.tar.gz
Protected isdigit against non-ASCII.
-rw-r--r--src/LexYAML.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LexYAML.cxx b/src/LexYAML.cxx
index ef5315f24..a4eac3ce7 100644
--- a/src/LexYAML.cxx
+++ b/src/LexYAML.cxx
@@ -147,7 +147,7 @@ static void ColouriseYAMLLine(
} else {
unsigned int i2 = i;
while ((i < lengthLine) && lineBuffer[i]) {
- if (!isdigit(lineBuffer[i]) && lineBuffer[i] != '-' && lineBuffer[i] != '.' && lineBuffer[i] != ',') {
+ if (!(isascii(lineBuffer[i]) && isdigit(lineBuffer[i])) && lineBuffer[i] != '-' && lineBuffer[i] != '.' && lineBuffer[i] != ',') {
styler.ColourTo(endPos, SCE_YAML_DEFAULT);
return;
}