File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -110,11 +110,11 @@ syn match rustFloat display "\<[0-9][0-9_]*\.[0-9_]\+\%([eE][+-]\=[0-9
110
110
syn match rustLifetime display " \'\% ([^[:cntrl:][:space:][:punct:][:digit:]]\| _\)\% ([^[:cntrl:][:punct:][:space:]]\| _\) *"
111
111
syn match rustCharacter " '\( [^'\\ ]\|\\\( ['nrt\\\" ]\| x\x\{ 2}\| u\x\{ 4}\| U\x\{ 8}\)\) '"
112
112
113
- syn region rustCommentDoc start =" /\*\* " end =" \* /"
114
- syn region rustCommentDoc start =" /// " skip =" \\ $" end =" $" keepend
113
+ syn region rustCommentDoc start =" /\* [ \* !] " end =" \* /"
114
+ syn region rustCommentDoc start =" //[/!] " skip =" \\ $" end =" $" keepend
115
115
syn match rustComment " /\*\* /"
116
- syn region rustComment start =" /\*\( [^\* ]\| $\) " end =" \* /" contains =rustTodo
117
- syn region rustComment start =" //\( [^/]\| $\) " skip =" \\ $" end =" $" contains =rustTodo keepend
116
+ syn region rustComment start =" /\*\( [^\* ! ]\| $\) " end =" \* /" contains =rustTodo
117
+ syn region rustComment start =" //\( [^/! ]\| $\) " skip =" \\ $" end =" $" contains =rustTodo keepend
118
118
119
119
syn keyword rustTodo contained TODO FIXME XXX NB
120
120
You can’t perform that action at this time.
0 commit comments