mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
18 lines
450 B
VimL
18 lines
450 B
VimL
runtime! syntax/dosini.vim
|
|
unlet! b:current_syntax
|
|
|
|
syntax match editorconfigUnknownProperty "^\s*\zs[a-zA-Z0-9_-]\+\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'
|