diff options
author | Georg Brandl <georg@python.org> | 2017-01-22 18:49:36 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2017-01-22 18:49:36 +0100 |
commit | 40c74d50347fa8cf6f60182fc4a1a518e983cb0d (patch) | |
tree | 58ca92fcac15ca15a991c657f11353009c79cf73 /pygments/lexers/rust.py | |
parent | 737099ce65c3035b26ec9d60f065631c3d08816c (diff) | |
download | pygments-40c74d50347fa8cf6f60182fc4a1a518e983cb0d.tar.gz |
rust: nits
Diffstat (limited to 'pygments/lexers/rust.py')
-rw-r--r-- | pygments/lexers/rust.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/pygments/lexers/rust.py b/pygments/lexers/rust.py index eb14b85f..6914f54d 100644 --- a/pygments/lexers/rust.py +++ b/pygments/lexers/rust.py @@ -28,19 +28,16 @@ class RustLexer(RegexLexer): mimetypes = ['text/rust'] keyword_types = ( - words(('u8', 'u16', 'u32', 'u64', 'i8', 'i16', 'i32', 'i64', - 'usize', 'isize', 'f32', 'f64', 'str', 'bool'), - suffix=r'\b'), - Keyword.Type) + words(('u8', 'u16', 'u32', 'u64', 'i8', 'i16', 'i32', 'i64', + 'usize', 'isize', 'f32', 'f64', 'str', 'bool'), + suffix=r'\b'), + Keyword.Type) builtin_types = (words(( # Reexported core operators 'Copy', 'Send', 'Sized', 'Sync', 'Drop', 'Fn', 'FnMut', 'FnOnce', - # Reexported functions - 'drop', - # Reexported types and traits 'Box', 'ToOwned', |