diff options
author | SiegeLord <slabode@aim.com> | 2013-12-21 11:30:04 -0500 |
---|---|---|
committer | SiegeLord <slabode@aim.com> | 2013-12-21 11:30:04 -0500 |
commit | fdf3d365169b0db46b5a2c3d7264ce942aa813f3 (patch) | |
tree | e5ac9eaa72bd4d5555cfd19dd249824322c1e419 /lexers/LexRust.cxx | |
parent | 53fdd8747dbeb62d471033b119666a6ef0a46b4c (diff) | |
download | scintilla-mirror-fdf3d365169b0db46b5a2c3d7264ce942aa813f3.tar.gz |
rust: Highlight octal literals
Diffstat (limited to 'lexers/LexRust.cxx')
-rw-r--r-- | lexers/LexRust.cxx | 3 |
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); |