From 948526134b6e8a4308381f7c4ef4ebf49efdfb1c Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 6 May 2014 10:44:06 -0700 Subject: [PATCH] etc: Add box as a keyword to editor configs This keyword is about to be used much more often than it was a few weeks ago, it's time to tell editors about the new keyword. --- src/doc/rust.md | 2 +- src/etc/gedit/share/gtksourceview-3.0/language-specs/rust.lang | 1 + src/etc/kate/rust.xml | 1 + src/etc/vim/syntax/rust.vim | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/doc/rust.md b/src/doc/rust.md index 12d2911f529..45465a6a21c 100644 --- a/src/doc/rust.md +++ b/src/doc/rust.md @@ -204,7 +204,7 @@ The keywords are the following strings: ~~~~ {.notrust .keyword} as -break +box break crate else enum extern false fn for 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 7ffa35b94e4..7c9780456cf 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 @@ -38,6 +38,7 @@ as assert break + box const continue crate diff --git a/src/etc/kate/rust.xml b/src/etc/kate/rust.xml index 367d2738ab3..c28107fe9fa 100644 --- a/src/etc/kate/rust.xml +++ b/src/etc/kate/rust.xml @@ -18,6 +18,7 @@ as break + box continue crate do diff --git a/src/etc/vim/syntax/rust.vim b/src/etc/vim/syntax/rust.vim index f937fd8caa6..765096933d1 100644 --- a/src/etc/vim/syntax/rust.vim +++ b/src/etc/vim/syntax/rust.vim @@ -18,7 +18,7 @@ syn keyword rustOperator as syn match rustAssert "\