@@ -31,15 +31,15 @@ var Rust = internal.Register(MustNewLexer(
31
31
{`r#*"(?:\\.|[^\\\r\n;])*"#*` , LiteralString , nil },
32
32
{`"(?:\\.|[^\\\r\n"])*"` , LiteralString , nil },
33
33
{`\$([a-zA-Z_]\w*|\(,?|\),?|,?)` , CommentPreproc , nil },
34
- {Words (`` , `\b` , `as` , `box ` , `const` , `crate` , `else` , `extern` , `for` , `if` , `impl` , `in` , `loop` , `match` , `move` , `mut` , `pub` , `ref` , `return` , `static` , `super` , `trait` , `unsafe` , `use` , `where` , `while` ), Keyword , nil },
35
- {Words (`` , `\b` , `abstract` , `alignof ` , `become ` , `do` , `final` , `macro` , `offsetof` , ` override` , `priv` , `proc` , `pure` , `sizeof ` , `typeof` , `unsized` , `virtual` , `yield` ), KeywordReserved , nil },
34
+ {Words (`` , `\b` , `as` , `async` , `await ` , `const` , `crate` , `else` , `extern` , `for` , `if` , `impl` , `in` , `loop` , `match` , `move` , `mut` , `pub` , `ref` , `return` , `static` , `super` , `trait` , `unsafe` , `use` , `where` , `while` ), Keyword , nil },
35
+ {Words (`` , `\b` , `abstract` , `become ` , `box ` , `do` , `final` , `macro` , `override` , `priv` , `try ` , `typeof` , `unsized` , `virtual` , `yield` ), KeywordReserved , nil },
36
36
{`(true|false)\b` , KeywordConstant , nil },
37
37
{`mod\b` , Keyword , Push ("modname" )},
38
38
{`let\b` , KeywordDeclaration , nil },
39
39
{`fn\b` , Keyword , Push ("funcname" )},
40
40
{`(struct|enum|type|union)\b` , Keyword , Push ("typename" )},
41
41
{`(default)(\s+)(type|fn)\b` , ByGroups (Keyword , Text , Keyword ), nil },
42
- {Words (`` , `\b` , `u8` , `u16` , `u32` , `u64` , `i8` , `i16` , `i32` , `i64` , `usize` , `isize` , `f32` , `f64` , `str` , `bool` ), KeywordType , nil },
42
+ {Words (`` , `\b` , `u8` , `u16` , `u32` , `u64` , `u128` , ` i8` , `i16` , `i32` , `i64` , `i128 ` , `usize` , `isize` , `f32` , `f64` , `str` , `bool` ), KeywordType , nil },
43
43
{`self\b` , NameBuiltinPseudo , nil },
44
44
{Words (`` , `\b` , `Copy` , `Send` , `Sized` , `Sync` , `Drop` , `Fn` , `FnMut` , `FnOnce` , `Box` , `ToOwned` , `Clone` , `PartialEq` , `PartialOrd` , `Eq` , `Ord` , `AsRef` , `AsMut` , `Into` , `From` , `Default` , `Iterator` , `Extend` , `IntoIterator` , `DoubleEndedIterator` , `ExactSizeIterator` , `Option` , `Some` , `None` , `Result` , `Ok` , `Err` , `SliceConcatExt` , `String` , `ToString` , `Vec` ), NameBuiltin , nil },
45
45
{`::\b` , Text , nil },
0 commit comments