/usr/share/kak/rc/base/ini.kak is in kakoune 0~2016.12.20.1.3a6167ae-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | hook global BufCreate .*\.(repo|service|target|socket|ini|cfg) %{
set buffer filetype ini
}
addhl -group / regions -default code ini \
comment (^|\h)\K\# $ ''
addhl -group /ini/code regex "^\h*\[[^\]]*\]" 0:title
addhl -group /ini/code regex "^\h*([^\[][^=\n]*=)([^\n]*)" 1:identifier 2:value
addhl -group /ini/comment fill comment
hook -group ini-highlight global WinSetOption filetype=ini %{ addhl ref ini }
hook -group ini-highlight global WinSetOption filetype=(?!ini).* %{ rmhl ini }
|