aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexGAP.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/LexGAP.cxx')
-rw-r--r--src/LexGAP.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LexGAP.cxx b/src/LexGAP.cxx
index 25bd33b90..fb6e739bd 100644
--- a/src/LexGAP.cxx
+++ b/src/LexGAP.cxx
@@ -26,7 +26,7 @@ using namespace Scintilla;
#endif
static inline bool IsGAPOperator(char ch) {
- if (isalnum(ch)) return false;
+ if (isascii(ch) && isalnum(ch)) return false;
if (ch == '+' || ch == '-' || ch == '*' || ch == '/' ||
ch == '^' || ch == ',' || ch == '!' || ch == '.' ||
ch == '=' || ch == '<' || ch == '>' || ch == '(' ||