aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSiegeLord <slabode@aim.com>2013-12-21 11:30:04 -0500
committerSiegeLord <slabode@aim.com>2013-12-21 11:30:04 -0500
commitfdf3d365169b0db46b5a2c3d7264ce942aa813f3 (patch)
treee5ac9eaa72bd4d5555cfd19dd249824322c1e419
parent53fdd8747dbeb62d471033b119666a6ef0a46b4c (diff)
downloadscintilla-mirror-fdf3d365169b0db46b5a2c3d7264ce942aa813f3.tar.gz
rust: Highlight octal literals
-rw-r--r--lexers/LexRust.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/lexers/LexRust.cxx b/lexers/LexRust.cxx
index 3a6c8fff3..7018a925c 100644
--- a/lexers/LexRust.cxx
+++ b/lexers/LexRust.cxx
@@ -267,6 +267,9 @@ static void ScanNumber(Accessor& styler, int& pos) {
} else if (c == '0' && n == 'b') {
pos += 2;
base = 2;
+ } else if (c == '0' && n == 'o') {
+ pos += 2;
+ base = 8;
}
int old_pos = pos;
ScanDigits(styler, pos, base);