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