aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexCPP.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2001-01-23 00:08:29 +0000
committernyamatongwe <unknown>2001-01-23 00:08:29 +0000
commit82944ecd7b8558dc6b2c3b22f6a9bc21a0de483b (patch)
tree22700ecfd1ea77a9c3939f72ef0e9c4fed7914ab /src/LexCPP.cxx
parent347e47646b37986d18b0fbb6787fec71bb394483 (diff)
downloadscintilla-mirror-82944ecd7b8558dc6b2c3b22f6a9bc21a0de483b.tar.gz
New function isspacechar to avoid bugs when character >= 0x80.
Diffstat (limited to 'src/LexCPP.cxx')
-rw-r--r--src/LexCPP.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/LexCPP.cxx b/src/LexCPP.cxx
index 9064cd012..1a2728dc8 100644
--- a/src/LexCPP.cxx
+++ b/src/LexCPP.cxx
@@ -88,7 +88,7 @@ static void ColouriseCppDoc(unsigned int startPos, int length, int initStyle, Wo
}
visibleChars = 0;
}
- if (!isspace(ch))
+ if (!isspacechar(ch))
visibleChars++;
if (styler.IsLeadByte(ch)) {
@@ -145,7 +145,7 @@ static void ColouriseCppDoc(unsigned int startPos, int length, int initStyle, Wo
i++;
ch = chNext;
chNext = styler.SafeGetCharAt(i + 1);
- } while (isspace(ch) && (i < lengthDoc));
+ } while (isspacechar(ch) && (i < lengthDoc));
} else if (isoperator(ch)) {
styler.ColourTo(i-1, state);
styler.ColourTo(i, SCE_C_OPERATOR);
@@ -178,7 +178,7 @@ static void ColouriseCppDoc(unsigned int startPos, int length, int initStyle, Wo
} else {
if (state == SCE_C_PREPROCESSOR) {
if (stylingWithinPreprocessor) {
- if (isspace(ch)) {
+ if (isspacechar(ch)) {
styler.ColourTo(i-1, state);
state = SCE_C_DEFAULT;
}