fix shell string start and end regex

This commit is contained in:
xificurC 2015-07-02 21:59:34 +02:00
parent ee6fc92ae2
commit 8813580516

View File

@ -7,8 +7,8 @@ hook global BufSetOption mimetype=text/x-shellscript %{
}
addhl -group / regions -default code sh \
double_string %{"} %{(?<!\\)(\\\\)*"} '' \
single_string %{'} %{(?<!\\)(\\\\)*'} '' \
double_string %{(?<!\\)(\\\\)*\K"} %{(?<!\\)(\\\\)*"} '' \
single_string %{(?<!\\)(\\\\)*\K'} %{'} '' \
comment '(?<!\$)#' '$' ''
addhl -group /sh/double_string fill string