aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexProgress.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'lexers/LexProgress.cxx')
-rw-r--r--lexers/LexProgress.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/lexers/LexProgress.cxx b/lexers/LexProgress.cxx
index 88fed1452..88a840341 100644
--- a/lexers/LexProgress.cxx
+++ b/lexers/LexProgress.cxx
@@ -121,7 +121,9 @@ static void Colourise4glDoc(Sci_PositionU startPos, Sci_Position length, int ini
sc.SetState(SCE_4GL_DEFAULT | mask);
break;
case SCE_4GL_NUMBER:
- if (!(IsADigit(sc.ch))) {
+ // Hex numbers (0xnnnn) are supported so accept any
+ // alphanumeric character if it follows a leading digit.
+ if (!(IsAlphaNumeric(sc.ch))) {
sc.SetState(SCE_4GL_DEFAULT | mask);
}
break;