diff options
author | Corey Richardson <corey@octayn.net> | 2014-01-07 22:56:59 -0500 |
---|---|---|
committer | Corey Richardson <corey@octayn.net> | 2014-01-07 22:56:59 -0500 |
commit | 9f75bd0977c476badfbd394c25f3a98f2d0f1edc (patch) | |
tree | 9636466601d06a07d5e43bdc1dcffb1f4d9f8f9b /pygments/lexers/compiled.py | |
parent | e5b9c3c27d8851ec03b5b71aa9053532c9cda685 (diff) | |
download | pygments-9f75bd0977c476badfbd394c25f3a98f2d0f1edc.tar.gz |
Rust: fix builtin types
Diffstat (limited to 'pygments/lexers/compiled.py')
-rw-r--r-- | pygments/lexers/compiled.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py index d1745ac9..4afa4ccf 100644 --- a/pygments/lexers/compiled.py +++ b/pygments/lexers/compiled.py @@ -3213,7 +3213,8 @@ class RustLexer(RegexLexer): (r'(mod|use)', Keyword.Namespace), (r'(true|false)', Keyword.Constant), (r'let', Keyword.Declaration), - (r'|u8|u16|u32|u64|i8|i16|i32|i64|uint|int|f32|f64', Keyword.Type), + (r'(u8|u16|u32|u64|i8|i16|i32|i64|uint|int|f32|f64' + r'|str|bool)', Keyword.Type), (r'self', Name.Builtin.Pseudo), # Prelude (r'(Freeze|Pod|Send|Sized|Add|Sub|Mul|Div|Rem|Neg|Not|BitAnd' |