aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexBasic.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-01-08 13:50:22 +1100
committerNeil <nyamatongwe@gmail.com>2014-01-08 13:50:22 +1100
commitd34c7a075649b4b4e9b4ee4c4287acf74dbf7169 (patch)
treeb7a3602ab349506c1081d14cc9a52ae50456b322 /lexers/LexBasic.cxx
parent38e38ba14e753b2c7d2f5fc2ed62e4991a28c703 (diff)
downloadscintilla-mirror-d34c7a075649b4b4e9b4ee4c4287acf74dbf7169.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.cxx4
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);