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
|
|
|
|
|
|
|
|