feat(editorconfig): update Lua code in syntax file

This commit is contained in:
ObserverOfTime 2023-07-20 11:31:18 +03:00
parent aa4900dff0
commit 5f29f7b59f
No known key found for this signature in database
GPG Key ID: 8A2DEA1DBAEBCA9E

View File

@ -11,11 +11,8 @@ 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, ' ')))
local props = vim.tbl_keys(require('editorconfig').properties)
vim.cmd.syntax { 'keyword', 'editorconfigProperty', unpack(props) }
.
hi def link editorconfigProperty dosiniLabel