Skip to content

Update editor syntax files for isize/usize. #20689

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 7, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/etc/emacs/rust-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
"u64" "i64"

"f32" "f64"
"float" "int" "uint"
"float" "int" "uint" "isize" "usize"
"bool"
"str" "char"))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 2 additions & 0 deletions src/etc/kate/rust.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion src/etc/vim/syntax/rust.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down