1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 03:00:06 +08:00
SpaceVim/syntax/leaderGuide.vim

20 lines
643 B
VimL
Raw Normal View History

2018-07-15 20:23:38 +08:00
if exists('b:current_syntax') && b:current_syntax ==# 'leaderguide'
2017-03-14 00:57:16 +08:00
finish
endif
2018-07-15 20:23:38 +08:00
let b:current_syntax = 'leaderguide'
2017-03-14 00:57:16 +08:00
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