File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -110,8 +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 rustComment start =" /\* " end =" \* /" contains =rustComment,rustTodo
114
- syn region rustComment start =" //" skip =" \\ $" end =" $" contains =rustTodo keepend
113
+ syn region rustCommentDoc start =" /\*\* " end =" \* /"
114
+ syn region rustCommentDoc start =" ///" skip =" \\ $" end =" $" keepend
115
+ syn match rustComment " /\*\* /"
116
+ syn region rustComment start =" /\*\( [^\* ]\| $\) " end =" \* /" contains =rustTodo
117
+ syn region rustComment start =" //\( [^/]\| $\) " skip =" \\ $" end =" $" contains =rustTodo keepend
115
118
116
119
syn keyword rustTodo contained TODO FIXME XXX NB
117
120
@@ -134,6 +137,7 @@ hi def link rustConditional Conditional
134
137
hi def link rustIdentifier Identifier
135
138
hi def link rustModPath Include
136
139
hi def link rustFuncName Function
140
+ hi def link rustCommentDoc SpecialComment
137
141
hi def link rustComment Comment
138
142
hi def link rustMacro Macro
139
143
hi def link rustType Type
You can’t perform that action at this time.
0 commit comments