Support .properties extension, fix coloring the equals sign

This commit is contained in:
Maxim Baz 2018-06-28 00:08:44 +02:00
parent 2a4d3eb13b
commit b2867a0197
No known key found for this signature in database
GPG Key ID: 011FDC52DA839335

View File

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