blob: 4392d2b2d51269d9c0defe38a72b766680eeea2a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
runtime! syntax/dosini.vim
unlet! b:current_syntax
syntax match editorconfigUnknownProperty "^\s*\zs\w\+\ze\s*="
syntax keyword editorconfigProperty root
lua<<
local props = {}
for k in pairs(require('editorconfig').properties) do
props[#props + 1] = k
end
vim.cmd(string.format('syntax keyword editorconfigProperty %s', table.concat(props, ' ')))
.
hi def link editorconfigProperty dosiniLabel
let b:current_syntax = 'editorconfig'
|