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 | 8c4dc4bdf6afacaf6925e1e330b1b9649698cc43 (patch) | |
| tree | a9e3096497d0d11c17f9352eff8ca76e95677e75 /lexers/LexRust.cxx | |
| parent | f5140067b48216e964db25d9c4b8dd0ce0ffeccd (diff) | |
| download | scintilla-mirror-8c4dc4bdf6afacaf6925e1e330b1b9649698cc43.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); |
