aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexLaTeX.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2013-07-21 15:20:45 +1000
committerNeil <nyamatongwe@gmail.com>2013-07-21 15:20:45 +1000
commit87e59817db5e6cfd18b07f160b4b468b196072a5 (patch)
treea6759b4ddda9d665be1b2faae31d2c1721cbe94d /lexers/LexLaTeX.cxx
parent84c83f9655629911abf29a012979d94040c4c2cd (diff)
downloadscintilla-mirror-87e59817db5e6cfd18b07f160b4b468b196072a5.tar.gz
Replace all instances of isascii with Scintilla-specific IsASCII.
iasascii is not part of ISO C or C++ but is a BSD extension so caused problems when compiling in strict compliance mode.
Diffstat (limited to 'lexers/LexLaTeX.cxx')
-rw-r--r--lexers/LexLaTeX.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/lexers/LexLaTeX.cxx b/lexers/LexLaTeX.cxx
index f3b14054c..f8af1e7dc 100644
--- a/lexers/LexLaTeX.cxx
+++ b/lexers/LexLaTeX.cxx
@@ -99,7 +99,7 @@ static bool latexIsBlankAndNL(int ch) {
}
static bool latexIsLetter(int ch) {
- return isascii(ch) && isalpha(ch);
+ return IsASCII(ch) && isalpha(ch);
}
static bool latexIsTagValid(int &i, int l, Accessor &styler) {
@@ -224,7 +224,7 @@ void SCI_METHOD LexerLaTeX::Lex(unsigned int startPos, int length, int initStyle
chNext = styler.SafeGetCharAt(i + 1);
} else if (chNext == '\r' || chNext == '\n') {
styler.ColourTo(i, SCE_L_ERROR);
- } else if (isascii(chNext)) {
+ } else if (IsASCII(chNext)) {
styler.ColourTo(i + 1, SCE_L_SHORTCMD);
if (chNext == '(') {
mode = 1;
@@ -340,7 +340,7 @@ void SCI_METHOD LexerLaTeX::Lex(unsigned int startPos, int length, int initStyle
chNext = styler.SafeGetCharAt(i + 1);
} else if (chNext == '\r' || chNext == '\n') {
styler.ColourTo(i, SCE_L_ERROR);
- } else if (isascii(chNext)) {
+ } else if (IsASCII(chNext)) {
if (chNext == ')') {
mode = 0;
state = SCE_L_DEFAULT;
@@ -382,7 +382,7 @@ void SCI_METHOD LexerLaTeX::Lex(unsigned int startPos, int length, int initStyle
chNext = styler.SafeGetCharAt(i + 1);
} else if (chNext == '\r' || chNext == '\n') {
styler.ColourTo(i, SCE_L_ERROR);
- } else if (isascii(chNext)) {
+ } else if (IsASCII(chNext)) {
if (chNext == ']') {
mode = 0;
state = SCE_L_DEFAULT;