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/LexLisp.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/LexLisp.cxx')
-rw-r--r-- | lexers/LexLisp.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lexers/LexLisp.cxx b/lexers/LexLisp.cxx index 08f765ad6..8dd6bd9c4 100644 --- a/lexers/LexLisp.cxx +++ b/lexers/LexLisp.cxx @@ -33,7 +33,7 @@ using namespace Scintilla; #define SCE_LISP_MACRO_DISPATCH 31 static inline bool isLispoperator(char ch) { - if (isascii(ch) && isalnum(ch)) + if (IsASCII(ch) && isalnum(ch)) return false; if (ch == '\'' || ch == '`' || ch == '(' || ch == ')' || ch == '[' || ch == ']' || ch == '{' || ch == '}') return true; @@ -41,7 +41,7 @@ static inline bool isLispoperator(char ch) { } static inline bool isLispwordstart(char ch) { - return isascii(ch) && ch != ';' && !isspacechar(ch) && !isLispoperator(ch) && + return IsASCII(ch) && ch != ';' && !isspacechar(ch) && !isLispoperator(ch) && ch != '\n' && ch != '\r' && ch != '\"'; } @@ -142,7 +142,7 @@ static void ColouriseLispDoc(unsigned int startPos, int length, int initStyle, W } } } else if (state == SCE_LISP_MACRO_DISPATCH) { - if (!(isascii(ch) && isdigit(ch))) { + if (!(IsASCII(ch) && isdigit(ch))) { if (ch != 'r' && ch != 'R' && (i - styler.GetStartSegment()) > 1) { state = SCE_LISP_DEFAULT; } else { |