Do s/ini-highlighter/ini/ on rc/base/ini.kak

This commit is contained in:
greduan 2016-09-25 15:07:53 +02:00
parent 1e0ec182c1
commit f02c6633fb

View File

@ -2,18 +2,18 @@ hook global BufCreate .*\.(repo|service|target|socket|ini|cfg) %{
set buffer filetype ini set buffer filetype ini
} }
addhl -group / regions -default code ini-highlighter \ addhl -group / regions -default code ini \
comment (^|\h)\K\# $ '' comment (^|\h)\K\# $ ''
addhl -group /ini-highlighter/code regex "^\h*\[[^\]]*\]" 0:title addhl -group /ini/code regex "^\h*\[[^\]]*\]" 0:title
addhl -group /ini-highlighter/code regex "^\h*([^\[][^=\n]*=)([^\n]*)" 1:identifier 2:value addhl -group /ini/code regex "^\h*([^\[][^=\n]*=)([^\n]*)" 1:identifier 2:value
addhl -group /ini-highlighter/comment fill comment addhl -group /ini/comment fill comment
hook global WinSetOption filetype=ini %{ hook global WinSetOption filetype=ini %{
addhl ref ini-highlighter addhl ref ini
} }
hook global WinSetOption filetype=(?!ini).* %{ hook global WinSetOption filetype=(?!ini).* %{
rmhl ini-highlighter rmhl ini
} }