1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:30:04 +08:00
SpaceVim/syntax/leaderGuide.vim

16 lines
486 B
VimL
Raw Normal View History

2017-03-14 00:57:16 +08:00
if exists("b:current_syntax")
finish
endif
let b:current_syntax = "leaderguide"
syn region LeaderGuideKeys start="\["hs=e+1 end="\]\s"he=s-1
\ contained
syn region LeaderGuideBrackets start="\(^\|\s\+\)\[" end="\]\s\+"
\ contains=LeaderGuideKeys keepend
syn region LeaderGuideDesc start="^" end="$"
\ contains=LeaderGuideBrackets
hi def link LeaderGuideDesc Identifier
hi def link LeaderGuideKeys Type
hi def link LeaderGuideBrackets Delimiter