From 6c7291ece47d0b263a3d3dadbda2ff7d034f705f Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Wed, 7 Jan 2015 20:19:58 +1100 Subject: [PATCH] Update editor syntax files for isize/usize. Yay, syntax highlighting. --- src/etc/emacs/rust-mode.el | 2 +- src/etc/gedit/share/gtksourceview-3.0/language-specs/rust.lang | 2 ++ src/etc/kate/rust.xml | 2 ++ src/etc/vim/syntax/rust.vim | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/etc/emacs/rust-mode.el b/src/etc/emacs/rust-mode.el index 6917e9ee354ee..661dc21e2dc5d 100644 --- a/src/etc/emacs/rust-mode.el +++ b/src/etc/emacs/rust-mode.el @@ -189,7 +189,7 @@ "u64" "i64" "f32" "f64" - "float" "int" "uint" + "float" "int" "uint" "isize" "usize" "bool" "str" "char")) diff --git a/src/etc/gedit/share/gtksourceview-3.0/language-specs/rust.lang b/src/etc/gedit/share/gtksourceview-3.0/language-specs/rust.lang index 373e9f78cc295..8291b38a9bd0b 100644 --- a/src/etc/gedit/share/gtksourceview-3.0/language-specs/rust.lang +++ b/src/etc/gedit/share/gtksourceview-3.0/language-specs/rust.lang @@ -79,7 +79,9 @@ bool int + isize uint + usize i8 i16 i32 diff --git a/src/etc/kate/rust.xml b/src/etc/kate/rust.xml index 1fb01767a130b..1768a52361b1f 100644 --- a/src/etc/kate/rust.xml +++ b/src/etc/kate/rust.xml @@ -91,7 +91,9 @@ bool int + isize uint + usize i8 i16 i32 diff --git a/src/etc/vim/syntax/rust.vim b/src/etc/vim/syntax/rust.vim index dce6d3f66879e..678cb3e160234 100644 --- a/src/etc/vim/syntax/rust.vim +++ b/src/etc/vim/syntax/rust.vim @@ -59,7 +59,7 @@ syn match rustMacroVariable "$\w\+" syn keyword rustReservedKeyword alignof be do offsetof priv pure sizeof typeof unsized yield abstract final override macro " Built-in types {{{2 -syn keyword rustType int uint float char bool u8 u16 u32 u64 f32 +syn keyword rustType int isize uint usize float char bool u8 u16 u32 u64 f32 syn keyword rustType f64 i8 i16 i32 i64 str Self " Things from the prelude (src/libstd/prelude.rs) {{{2