aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/editorconfig.vim
blob: 006b99cec5f772eaf3d165c458b24feb66fe64d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
runtime! syntax/dosini.vim
unlet! b:current_syntax

syntax match editorconfigInvalidProperty "^\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 editorconfigInvalidProperty Error
hi def link editorconfigProperty dosiniLabel

let b:current_syntax = 'editorconfig'