mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 10:40:03 +08:00
20 lines
605 B
VimL
20 lines
605 B
VimL
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 match LeaderGuideBrackets /\[[^ ]\+\]/
|
|
\ contains=LeaderGuideKeys keepend
|
|
syn match LeaderGuideGroupName / +[^\[^\]]\+/ contained
|
|
syn region LeaderGuideDesc start="^" end="$"
|
|
\ contains=LeaderGuideBrackets,LeaderGuideGroupName
|
|
|
|
hi def link LeaderGuideDesc Identifier
|
|
hi def link LeaderGuideKeys Type
|
|
hi def link LeaderGuideBrackets Delimiter
|
|
hi def link LeaderGuideGroupName SpaceVimLeaderGuiderGroupName
|
|
|
|
|