2023-07-27 05:39:05 -07:00
|
|
|
" Nvim syntax file
|
|
|
|
" Language: EditorConfig
|
|
|
|
" Last Change: 2023-07-20
|
|
|
|
"
|
|
|
|
" This file is intentionally _not_ copied from Vim.
|
|
|
|
|
2023-01-03 09:13:35 -07:00
|
|
|
runtime! syntax/dosini.vim
|
|
|
|
unlet! b:current_syntax
|
|
|
|
|
2023-07-27 05:39:05 -07:00
|
|
|
syntax match editorconfigUnknownProperty "^\s*\zs[a-zA-Z0-9_-]\+\ze\s*="
|
2023-01-03 09:13:35 -07:00
|
|
|
syntax keyword editorconfigProperty root
|
|
|
|
|
|
|
|
lua<<
|
2023-07-27 05:39:05 -07:00
|
|
|
local props = vim.tbl_keys(require('editorconfig').properties)
|
|
|
|
vim.cmd.syntax { 'keyword', 'editorconfigProperty', unpack(props) }
|
2023-01-03 09:13:35 -07:00
|
|
|
.
|
|
|
|
|
|
|
|
hi def link editorconfigProperty dosiniLabel
|
|
|
|
|
|
|
|
let b:current_syntax = 'editorconfig'
|