Merge remote-tracking branch 'helvetie/ini-comments'

This commit is contained in:
Maxime Coste 2017-10-20 17:29:02 +08:00
commit f76535613e

View File

@ -3,7 +3,7 @@ hook global BufCreate .*\.(repo|service|target|socket|ini|cfg) %{
}
add-highlighter -group / regions -default code ini \
comment (^|\h)\K\# $ ''
comment (^|\h)\K[\#\;] $ ''
add-highlighter -group /ini/code regex "^\h*\[[^\]]*\]" 0:title
add-highlighter -group /ini/code regex "^\h*([^\[][^=\n]*=)([^\n]*)" 1:variable 2:value