From b58ecc5340c78b08cbc15d62715001937f321c20 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 13 May 2010 01:30:06 +0000 Subject: Fix debug assertions for bug #3000566. --- src/LexCOBOL.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/LexCOBOL.cxx') diff --git a/src/LexCOBOL.cxx b/src/LexCOBOL.cxx index d061d5c67..cd42e3e89 100644 --- a/src/LexCOBOL.cxx +++ b/src/LexCOBOL.cxx @@ -202,7 +202,7 @@ static void ColouriseCOBOLDoc(unsigned int startPos, int length, int initStyle, } if (state == SCE_C_DEFAULT) { - if (isCOBOLwordstart(ch) || (ch == '$' && isalpha(chNext))) { + if (isCOBOLwordstart(ch) || (ch == '$' && isascii(chNext) && isalpha(chNext))) { ColourTo(styler, i-1, state); state = SCE_C_IDENTIFIER; } else if (column == 0 && ch == '*' && chNext != '*') { -- cgit v1.2.3