2023-12-08 14:38:33 +01:00
|
|
|
if exists("b:current_syntax")
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
|
|
|
syntax clear
|
|
|
|
|
|
|
|
syntax match confSection "[a-zA-Z0-9_]\+" contained
|
|
|
|
highlight link confSection Statement
|
|
|
|
|
|
|
|
syntax match confKey "[a-zA-Z0-9_]\+\s\+"
|
|
|
|
highlight link confKey Identifier
|
|
|
|
|
|
|
|
syntax match confValue "[^\n]*" contained
|
|
|
|
highlight link confValue String
|
|
|
|
|
2023-12-08 14:50:02 +01:00
|
|
|
syntax match confObjectHeader "^\[\[\S+[^,]\]\]/$"
|
|
|
|
syntax match confObjectHeader /\v\[\S+[^,]\]/
|
2023-12-08 14:38:33 +01:00
|
|
|
highlight link confObjectHeader Type
|
|
|
|
|
|
|
|
|
|
|
|
" Enable folding based on sections
|
|
|
|
setlocal foldmethod=marker
|
|
|
|
setlocal foldmarker=[,]
|