summaryrefslogtreecommitdiffstats
path: root/syntax/rust.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2017-02-02 21:16:29 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2017-02-02 21:16:29 +0100
commite685e4b431ab017d1aec9f9668fbeeeb6e7113e6 (patch)
tree47137f448d461ebb6852d81c6f553d0843e33764 /syntax/rust.vim
parente404a658b1647fad396a954776eda0bdabf8353c (diff)
downloadvim-polyglot-e685e4b431ab017d1aec9f9668fbeeeb6e7113e6.tar.gz
vim-polyglot-e685e4b431ab017d1aec9f9668fbeeeb6e7113e6.zip
Update
Diffstat (limited to 'syntax/rust.vim')
-rw-r--r--syntax/rust.vim12
1 files changed, 6 insertions, 6 deletions
diff --git a/syntax/rust.vim b/syntax/rust.vim
index c398252c..9e280b0d 100644
--- a/syntax/rust.vim
+++ b/syntax/rust.vim
@@ -71,8 +71,8 @@ syn match rustMacroVariable "$\w\+"
syn keyword rustReservedKeyword alignof become do offsetof priv pure sizeof typeof unsized yield abstract virtual final override macro
" Built-in types {{{2
-syn keyword rustType isize usize char bool u8 u16 u32 u64 f32
-syn keyword rustType f64 i8 i16 i32 i64 str Self
+syn keyword rustType isize usize char bool u8 u16 u32 u64 u128 f32
+syn keyword rustType f64 i8 i16 i32 i64 i128 str Self
" Things from the libstd v1 prelude (src/libstd/prelude/v1.rs) {{{2
" This section is just straight transformation of the contents of the prelude,
@@ -152,10 +152,10 @@ syn region rustDerive start="derive(" end=")" contained contains=rustDer
syn keyword rustDeriveTrait contained Clone Hash RustcEncodable RustcDecodable Encodable Decodable PartialEq Eq PartialOrd Ord Rand Show Debug Default FromPrimitive Send Sync Copy
" Number literals
-syn match rustDecNumber display "\<[0-9][0-9_]*\%([iu]\%(size\|8\|16\|32\|64\)\)\="
-syn match rustHexNumber display "\<0x[a-fA-F0-9_]\+\%([iu]\%(size\|8\|16\|32\|64\)\)\="
-syn match rustOctNumber display "\<0o[0-7_]\+\%([iu]\%(size\|8\|16\|32\|64\)\)\="
-syn match rustBinNumber display "\<0b[01_]\+\%([iu]\%(size\|8\|16\|32\|64\)\)\="
+syn match rustDecNumber display "\<[0-9][0-9_]*\%([iu]\%(size\|8\|16\|32\|64\|128\)\)\="
+syn match rustHexNumber display "\<0x[a-fA-F0-9_]\+\%([iu]\%(size\|8\|16\|32\|64\|128\)\)\="
+syn match rustOctNumber display "\<0o[0-7_]\+\%([iu]\%(size\|8\|16\|32\|64\|128\)\)\="
+syn match rustBinNumber display "\<0b[01_]\+\%([iu]\%(size\|8\|16\|32\|64\|128\)\)\="
" Special case for numbers of the form "1." which are float literals, unless followed by
" an identifier, which makes them integer literals with a method call or field access,