sxhkd.vim (857B)
1 if exists("b:current_syntax") 2 finish 3 endif 4 5 6 syntax match sxhkd_binding "\v^.*$" contains=sxhkd_on_release,sxhkd_binding_pass,sxhkd_brace 7 syntax match sxhkd_on_release "\v^\@" contained 8 syntax match sxhkd_binding_pass "\v^\~" contained 9 syntax match sxhkd_exec "\v^\s+.*" contains=@sxhkd_rc,sxhkd_brace 10 syntax match sxhkd_comment "\v#.*$" 11 syntax match sxhkd_brace "\[[^\]]*\]" contained 12 13 highlight link sxhkd_comment Comment 14 highlight link sxhkd_binding Identifier 15 highlight link sxhkd_binding_on_release Conditional 16 highlight link sxhkd_binding_pass Constant 17 highlight link sxhkd_brace Macro 18 19 " match rc 20 " - https://github.com/weakish/rcshell.vim 21 " - gopher://hhvn.uk/1/git/o/rcshell.vim 22 syntax include @sxhkd_rc syntax/rcshell.vim 23 syntax region rcLine matchgroup=sxhkd_exec start=/\v^\s+\s/ end=/\v$/ contains=@sxhkd_rc 24 25 let b:current_syntax = "sxhkd"