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

20 lines
605 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
2017-04-22 20:05:17 +08:00
syn match LeaderGuideBrackets /\[[^ ]\+\]/
2017-03-14 00:57:16 +08:00
\ contains=LeaderGuideKeys keepend
2017-04-22 20:20:37 +08:00
syn match LeaderGuideGroupName / +[^\[^\]]\+/ contained
2017-03-14 00:57:16 +08:00
syn region LeaderGuideDesc start="^" end="$"
2017-04-17 20:24:31 +08:00
\ contains=LeaderGuideBrackets,LeaderGuideGroupName
2017-03-14 00:57:16 +08:00
hi def link LeaderGuideDesc Identifier
hi def link LeaderGuideKeys Type
hi def link LeaderGuideBrackets Delimiter
2017-04-17 20:40:13 +08:00
hi def link LeaderGuideGroupName SpaceVimLeaderGuiderGroupName
2017-04-17 20:24:31 +08:00