|
3 | 3 | " Maintainer: Patrick Walton <[email protected]>
|
4 | 4 | " Maintainer: Ben Blum <[email protected]>
|
5 | 5 | " Maintainer: Chris Morgan <[email protected]>
|
6 |
| -" Last Change: 2013 Dec 10 |
| 6 | +" Last Change: 2014 Jan 4 |
7 | 7 |
|
8 | 8 | if version < 600
|
9 | 9 | syntax clear
|
@@ -147,8 +147,8 @@ syn match rustMacro '#\w\(\w\)*' contains=rustAssert,rustFail
|
147 | 147 | syn match rustSpecialError display contained /\\./
|
148 | 148 | syn match rustSpecial display contained /\\\([nrt0\\'"]\|x\x\{2}\|u\x\{4}\|U\x\{8}\)/
|
149 | 149 | syn match rustStringContinuation display contained /\\\n\s*/
|
150 |
| -syn region rustString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=rustSpecial,rustSpecialError,rustStringContinuation |
151 |
| -syn region rustString start='r\z(#*\)"' end='"\z1' |
| 150 | +syn region rustString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=rustSpecial,rustSpecialError,rustStringContinuation,@Spell |
| 151 | +syn region rustString start='r\z(#*\)"' end='"\z1' contains=@Spell |
152 | 152 |
|
153 | 153 | syn region rustAttribute start="#\[" end="\]" contains=rustString,rustDeriving
|
154 | 154 | syn region rustDeriving start="deriving(" end=")" contained contains=rustTrait
|
@@ -179,10 +179,10 @@ syn match rustLifetime display "\'\%([^[:cntrl:][:space:][:punct:][:digit
|
179 | 179 | syn match rustCharacter /'\([^'\\]\|\\\(.\|x\x\{2}\|u\x\{4}\|U\x\{8}\)\)'/ contains=rustSpecial,rustSpecialError
|
180 | 180 |
|
181 | 181 | syn cluster rustComment contains=rustCommentLine,rustCommentLineDoc,rustCommentBlock,rustCommentBlockDoc
|
182 |
| -syn region rustCommentLine start="//" end="$" contains=rustTodo |
183 |
| -syn region rustCommentLineDoc start="//\%(//\@!\|!\)" end="$" contains=rustTodo |
184 |
| -syn region rustCommentBlock matchgroup=rustCommentBlock start="/\*\%(!\|\*[*/]\@!\)\@!" end="\*/" contains=rustTodo,@rustComment keepend extend |
185 |
| -syn region rustCommentBlockDoc matchgroup=rustCommentBlockDoc start="/\*\%(!\|\*[*/]\@!\)" end="\*/" contains=rustTodo,@rustComment keepend extend |
| 182 | +syn region rustCommentLine start="//" end="$" contains=rustTodo,@Spell |
| 183 | +syn region rustCommentLineDoc start="//\%(//\@!\|!\)" end="$" contains=rustTodo,@Spell |
| 184 | +syn region rustCommentBlock matchgroup=rustCommentBlock start="/\*\%(!\|\*[*/]\@!\)\@!" end="\*/" contains=rustTodo,@rustComment,@Spell keepend extend |
| 185 | +syn region rustCommentBlockDoc matchgroup=rustCommentBlockDoc start="/\*\%(!\|\*[*/]\@!\)" end="\*/" contains=rustTodo,@rustComment,@Spell keepend extend |
186 | 186 | " FIXME: this is a really ugly and not fully correct implementation. Most
|
187 | 187 | " importantly, a case like ``/* */*`` should have the final ``*`` not being in
|
188 | 188 | " a comment, but in practice at present it leaves comments open two levels
|
|
0 commit comments