Use regions for string highlighting in kakrc files

This commit is contained in:
Maxime Coste 2014-01-18 11:43:17 +00:00
parent 2ac545d306
commit a2c58d40b8

View File

@ -8,7 +8,8 @@ addhl -def-group kakrc regex \<(default|black|red|green|yellow|blue|magenta|cyan
addhl -def-group kakrc regex (?<=\<hook)\h+((global|buffer|window)|(\S+))\h+(\S+)\h+(\H+) 2:attribute 3:error 4:identifier 5:string
addhl -def-group kakrc regex (?<=\<set)\h+((global|buffer|window)|(\S+))\h+(\S+)\h+(\S+) 2:attribute 3:error 4:identifier 5:value
addhl -def-group kakrc regex (?<=\<regex)\h+(\S+) 1:string
addhl -def-group kakrc regex (?<!\\)(["'])(?:\\\1|.)*?\1 0:string
addhl -def-group kakrc region %{(^|\h)"} %{(?<!\\)(\\\\)*"\s} string
addhl -def-group kakrc region %{(^|\h)'} %{(?<!\\)(\\\\)*'\s} string
addhl -def-group kakrc regex (^|\h)\#[^\n]*\n 0:comment
addhl -def-group kakrc region_ref '%sh\{' '\}' sh