File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,17 @@ syn region rustComment start="//" skip="\\$" end="$" contains=rustTodo ke
103
103
104
104
syn keyword rustTodo TODO FIXME XXX NB
105
105
106
+ " For those who don't want to see `::`...
107
+ syn match rustModPathSep " ::" conceal cchar =・
108
+
109
+ syn match rustArrowHead contained " >" conceal cchar =
110
+ syn match rustArrowTail contained " -" conceal cchar =⟶
111
+ syn match rustArrowFull " ->" contains =rustArrowHead,rustArrowTail
112
+
113
+ syn match rustFatArrowHead contained " >" conceal cchar =
114
+ syn match rustFatArrowTail contained " =" conceal cchar =⟹
115
+ syn match rustFatArrowFull " =>" contains =rustFatArrowHead,rustFatArrowTail
116
+
106
117
hi def link rustHexNumber rustNumber
107
118
hi def link rustBinNumber rustNumber
108
119
@@ -122,8 +133,8 @@ hi def link rustMacro Macro
122
133
hi def link rustType Type
123
134
hi def link rustTodo Todo
124
135
hi def link rustAttribute PreProc
136
+ hi def link rustModPathSep Conceal
125
137
" Other Suggestions:
126
- " hi def link rustModPathSep Conceal
127
138
" hi rustAssert ctermfg=yellow
128
139
" hi rustMacro ctermfg=magenta
129
140
You can’t perform that action at this time.
0 commit comments