Merge remote-tracking branch 'danr/Fix-introduced-mistake-in-kakrc-highlighting'

This commit is contained in:
Maxime Coste 2017-10-23 16:33:26 +08:00
commit 214f321951

View File

@ -13,16 +13,16 @@ hook global BufCreate (.*/)?(kakrc|.*.kak) %{
add-highlighter -group / regions -default code kakrc \ add-highlighter -group / regions -default code kakrc \
comment (^|\h)\K\# $ '' \ comment (^|\h)\K\# $ '' \
double_string %{(^|\h)"} %{(?<!\\)(\\\\)*"} '' \ double_string %{(^|\h)\K"} %{(?<!\\)(\\\\)*"} '' \
single_string %{(^|\h)'} %{(?<!\\)(\\\\)*'} '' \ single_string %{(^|\h)\K'} %{(?<!\\)(\\\\)*'} '' \
shell '%sh\{' '\}' '\{' \ shell '(^|\h)\K%sh\{' '\}' '\{' \
shell '%sh\(' '\)' '\(' \ shell '(^|\h)\K%sh\(' '\)' '\(' \
shell '%sh\[' '\]' '\[' \ shell '(^|\h)\K%sh\[' '\]' '\[' \
shell '%sh\<' '\>' '\<' \ shell '(^|\h)\K%sh\<' '\>' '\<' \
shell '-shell-(completion|candidates)\h+%\{' '\}' '\{' \ shell '(^|\h)\K-shell-(completion|candidates)\h+%\{' '\}' '\{' \
shell '-shell-(completion|candidates)\h+%\(' '\)' '\(' \ shell '(^|\h)\K-shell-(completion|candidates)\h+%\(' '\)' '\(' \
shell '-shell-(completion|candidates)\h+%\[' '\]' '\[' \ shell '(^|\h)\K-shell-(completion|candidates)\h+%\[' '\]' '\[' \
shell '-shell-(completion|candidates)\h+%\<' '\>' '\<' shell '(^|\h)\K-shell-(completion|candidates)\h+%\<' '\>' '\<'
%sh{ %sh{
# Grammar # Grammar