diff options
author | Neil <nyamatongwe@gmail.com> | 2014-01-08 13:50:22 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-01-08 13:50:22 +1100 |
commit | ad6c28e8c79f2e38503a6cb24f017cd7b709a63c (patch) | |
tree | dc6a7f0b959bcdfb904bb9671da3fe5ea253cc06 /lexers/LexBasic.cxx | |
parent | b699bfc80e3b242795c9e7cbb0d1ac8b48750959 (diff) | |
download | scintilla-mirror-ad6c28e8c79f2e38503a6cb24f017cd7b709a63c.tar.gz |
Feature [feature-requests:#1041]. Highlight hex, octal, and binary numbers in FreeBASIC
which use the prefixes &h, &o and &b respectively.
From Ebben.
Diffstat (limited to 'lexers/LexBasic.cxx')
-rw-r--r-- | lexers/LexBasic.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lexers/LexBasic.cxx b/lexers/LexBasic.cxx index 55285201f..b73fac8b6 100644 --- a/lexers/LexBasic.cxx +++ b/lexers/LexBasic.cxx @@ -445,9 +445,9 @@ void SCI_METHOD LexerBasic::Lex(unsigned int startPos, int length, int initStyle sc.SetState(SCE_B_STRING); } else if (IsDigit(sc.ch)) { sc.SetState(SCE_B_NUMBER); - } else if (sc.Match('$')) { + } else if (sc.Match('$') || sc.Match("&h") || sc.Match("&H") || sc.Match("&o") || sc.Match("&O")) { sc.SetState(SCE_B_HEXNUMBER); - } else if (sc.Match('%')) { + } else if (sc.Match('%') || sc.Match("&b") || sc.Match("&B")) { sc.SetState(SCE_B_BINNUMBER); } else if (sc.Match('#')) { sc.SetState(SCE_B_CONSTANT); |