summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatth?us G. Chajdas <dev@anteru.net>2019-05-08 19:24:58 +0200
committerMatth?us G. Chajdas <dev@anteru.net>2019-05-08 19:24:58 +0200
commit682aeec48f57f11fb7f19cfff61bb52d9e835f57 (patch)
treea996ee21662f1d36a96f4400169a5611a50c3db5
parent7d88bffb38b6e92cd891451469030a0b310869ce (diff)
downloadpygments-682aeec48f57f11fb7f19cfff61bb52d9e835f57.tar.gz
Add i128/u128 types to the Rust parser.
-rw-r--r--CHANGES1
-rw-r--r--pygments/lexers/rust.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 0503d14e..94b85262 100644
--- a/CHANGES
+++ b/CHANGES
@@ -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)