浏览代码

Some rust.vim syntax sugar

Andrew Swistak 8 年之前
父节点
当前提交
c29c0bf80b
共有 1 个文件被更改,包括 14 次插入0 次删除
  1. 14 0
      vim/after/syntax/rust.vim

+ 14 - 0
vim/after/syntax/rust.vim

@@ -0,0 +1,14 @@
+"syn match rustType "\w\+\s{\@="
+syn match rustField "\w\+\(: \)\@="
+
+hi link rustCommentLineDoc SpecialComment
+hi link rustCommentBlockDoc SpecialComment
+hi link rustField Special
+
+
+hi SpecialComment ctermfg=246 ctermbg=NONE cterm=NONE  guifg=#949494 guibg=NONE gui=NONE
+hi rustAttribute ctermfg=cyan
+hi rustDerive ctermfg=cyan
+hi rustAssert ctermfg=yellow
+hi rustPanic ctermfg=red
+hi rustMacro ctermfg=magenta