diff options
-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); |