diff options
author | Matth?us G. Chajdas <dev@anteru.net> | 2019-05-08 19:24:58 +0200 |
---|---|---|
committer | Matth?us G. Chajdas <dev@anteru.net> | 2019-05-08 19:24:58 +0200 |
commit | 682aeec48f57f11fb7f19cfff61bb52d9e835f57 (patch) | |
tree | a996ee21662f1d36a96f4400169a5611a50c3db5 | |
parent | 7d88bffb38b6e92cd891451469030a0b310869ce (diff) | |
download | pygments-682aeec48f57f11fb7f19cfff61bb52d9e835f57.tar.gz |
Add i128/u128 types to the Rust parser.
-rw-r--r-- | CHANGES | 1 | ||||
-rw-r--r-- | pygments/lexers/rust.py | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -36,6 +36,7 @@ Version 2.4.0 * LLVM (PR#792) * Makefiles (PR#766) * PHP (#1482) + * Rust * SQL (PR#672) * Stan (PR#774) * Stata (PR#800) diff --git a/pygments/lexers/rust.py b/pygments/lexers/rust.py index 10097fba..b7b8cb7e 100644 --- a/pygments/lexers/rust.py +++ b/pygments/lexers/rust.py @@ -29,7 +29,7 @@ class RustLexer(RegexLexer): keyword_types = ( words(('u8', 'u16', 'u32', 'u64', 'i8', 'i16', 'i32', 'i64', - 'usize', 'isize', 'f32', 'f64', 'str', 'bool'), + 'i128', 'u128', 'usize', 'isize', 'f32', 'f64', 'str', 'bool'), suffix=r'\b'), Keyword.Type) |