1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-23 23:34:12 +03:00

kakrc highlighting: strings closing delimiters do not need to be followed by a whitespace

This commit is contained in:
Maxime Coste 2014-02-25 01:10:47 +00:00
parent 6d651c59d0
commit b0c2906890

View File

@ -8,8 +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 region %{(^|\h)"} %{(?<!\\)(\\\\)*"\s} string
addhl -def-group kakrc region %{(^|\h)'} %{(?<!\\)(\\\\)*'\s} string
addhl -def-group kakrc region %{(^|\h)"} %{(?<!\\)(\\\\)*"} string
addhl -def-group kakrc region %{(^|\h)'} %{(?<!\\)(\\\\)*'} string
addhl -def-group kakrc regex (^|\h)\#[^\n]*\n 0:comment
addhl -def-group kakrc region_ref '%sh\{' '\}' sh