2023-07-20 01:11: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-20 00:53:49 -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-20 01:31:18 -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'
|