From 18099fe085535d3d026db1a771c115b7a7ba6563 Mon Sep 17 00:00:00 2001 From: Benjamin Herr Date: Wed, 2 Oct 2013 02:45:46 +0200 Subject: [PATCH] add vim syntax highlighting support for raw string literals --- src/etc/vim/syntax/rust.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/src/etc/vim/syntax/rust.vim b/src/etc/vim/syntax/rust.vim index c465f076c74ab..7d51c3b847588 100644 --- a/src/etc/vim/syntax/rust.vim +++ b/src/etc/vim/syntax/rust.vim @@ -148,6 +148,7 @@ syn match rustFormat display "%%" contained syn match rustSpecial display contained /\\\([nrt\\'"]\|x\x\{2}\|u\x\{4}\|U\x\{8}\)/ syn match rustStringContinuation display contained /\\\n\s*/ syn region rustString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=rustTodo,rustFormat,rustSpecial,rustStringContinuation +syn region rustString start='r\z(#*\)"' end='"\z1' syn region rustAttribute start="#\[" end="\]" contains=rustString,rustDeriving syn region rustDeriving start="deriving(" end=")" contained contains=rustTrait