mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
feat(editorconfig): update Lua code in syntax file
This commit is contained in:
@@ -11,11 +11,8 @@ syntax match editorconfigUnknownProperty "^\s*\zs[a-zA-Z0-9_-]\+\ze\s*="
|
|||||||
syntax keyword editorconfigProperty root
|
syntax keyword editorconfigProperty root
|
||||||
|
|
||||||
lua<<
|
lua<<
|
||||||
local props = {}
|
local props = vim.tbl_keys(require('editorconfig').properties)
|
||||||
for k in pairs(require('editorconfig').properties) do
|
vim.cmd.syntax { 'keyword', 'editorconfigProperty', unpack(props) }
|
||||||
props[#props + 1] = k
|
|
||||||
end
|
|
||||||
vim.cmd(string.format('syntax keyword editorconfigProperty %s', table.concat(props, ' ')))
|
|
||||||
.
|
.
|
||||||
|
|
||||||
hi def link editorconfigProperty dosiniLabel
|
hi def link editorconfigProperty dosiniLabel
|
||||||
|
Reference in New Issue
Block a user