diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2015-01-07 20:19:58 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2015-01-07 20:19:58 +1100 |
| commit | 6c7291ece47d0b263a3d3dadbda2ff7d034f705f (patch) | |
| tree | 3da4ad00c4ebdac5da9d7f3fc49261659b26a374 /src | |
| parent | 9e4e524e0eb17c8f463e731f23b544003e8709c6 (diff) | |
| download | rust-6c7291ece47d0b263a3d3dadbda2ff7d034f705f.tar.gz rust-6c7291ece47d0b263a3d3dadbda2ff7d034f705f.zip | |
Update editor syntax files for isize/usize.
Yay, syntax highlighting.
Diffstat (limited to 'src')
| -rw-r--r-- | src/etc/emacs/rust-mode.el | 2 | ||||
| -rw-r--r-- | src/etc/gedit/share/gtksourceview-3.0/language-specs/rust.lang | 2 | ||||
| -rw-r--r-- | src/etc/kate/rust.xml | 2 | ||||
| -rw-r--r-- | 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 6917e9ee354..661dc21e2dc 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 373e9f78cc2..8291b38a9bd 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 @@ <context id="types" style-ref="type"> <keyword>bool</keyword> <keyword>int</keyword> + <keyword>isize</keyword> <keyword>uint</keyword> + <keyword>usize</keyword> <keyword>i8</keyword> <keyword>i16</keyword> <keyword>i32</keyword> diff --git a/src/etc/kate/rust.xml b/src/etc/kate/rust.xml index 1fb01767a13..1768a52361b 100644 --- a/src/etc/kate/rust.xml +++ b/src/etc/kate/rust.xml @@ -91,7 +91,9 @@ <list name="types"> <item> bool </item> <item> int </item> + <item> isize </item> <item> uint </item> + <item> usize </item> <item> i8 </item> <item> i16 </item> <item> i32 </item> diff --git a/src/etc/vim/syntax/rust.vim b/src/etc/vim/syntax/rust.vim index dce6d3f6687..678cb3e1602 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 |
