diff options
author | Matt Gilarde <devnull@localhost> | 2016-02-25 10:40:20 +1100 |
---|---|---|
committer | Matt Gilarde <devnull@localhost> | 2016-02-25 10:40:20 +1100 |
commit | 7d65b2507330ccb9f7ec5ee2638c08a335f658d2 (patch) | |
tree | 88fa2f67d47a2f5f6ec0bf3e7094ebb11ffffa7b /lexers/LexProgress.cxx | |
parent | d6e74b800671afa205df8d2d82845963da973c2f (diff) | |
download | scintilla-mirror-7d65b2507330ccb9f7ec5ee2638c08a335f658d2.tar.gz |
Support hexadecimal numeric literals.
Diffstat (limited to 'lexers/LexProgress.cxx')
-rw-r--r-- | lexers/LexProgress.cxx | 4 |
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; |