diff options
author | Neil <nyamatongwe@gmail.com> | 2013-07-21 15:20:45 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2013-07-21 15:20:45 +1000 |
commit | 87e59817db5e6cfd18b07f160b4b468b196072a5 (patch) | |
tree | a6759b4ddda9d665be1b2faae31d2c1721cbe94d /lexers/LexCrontab.cxx | |
parent | 84c83f9655629911abf29a012979d94040c4c2cd (diff) | |
download | scintilla-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/LexCrontab.cxx')
-rw-r--r-- | lexers/LexCrontab.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lexers/LexCrontab.cxx b/lexers/LexCrontab.cxx index 08abc7191..68f52e362 100644 --- a/lexers/LexCrontab.cxx +++ b/lexers/LexCrontab.cxx @@ -98,12 +98,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( (isascii(ch) && 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( isascii(ch) && isdigit(ch) ) { + } else if( IsASCII(ch) && isdigit(ch) ) { // signals the start of a number bufferCount = 0; buffer[bufferCount++] = ch; @@ -171,7 +171,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( (isascii(ch) && isalnum(ch)) || (ch == '_') || (ch == '-') || (ch == '/') || + if( (IsASCII(ch) && isalnum(ch)) || (ch == '_') || (ch == '-') || (ch == '/') || (ch == '$') || (ch == '.') || (ch == '<') || (ch == '>') || (ch == '@') ) { buffer[bufferCount++] = ch; @@ -200,7 +200,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( isascii(ch) && isdigit(ch) /* || ch == '.' */ ) { + if( IsASCII(ch) && isdigit(ch) /* || ch == '.' */ ) { buffer[bufferCount++] = ch; } else { state = SCE_NNCRONTAB_DEFAULT; |