robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

ObserverOfTimefix(editorconfig): highlight properties with dashes (#24407)df2f5e3912

master
521 B20 linesraw
1" Nvim syntax file
2" Language:     EditorConfig
3" Last Change:  2023-07-20
4"
5" This file is intentionally _not_ copied from Vim.
6
7runtime! syntax/dosini.vim
8unlet! b:current_syntax
9
10syntax match editorconfigUnknownProperty "^\s*\zs[a-zA-Z0-9_-]\+\ze\s*="
11syntax keyword editorconfigProperty root
12
13lua<<
14local props = vim.tbl_keys(require('editorconfig').properties)
15vim.cmd.syntax { 'keyword', 'editorconfigProperty', unpack(props) }
16.
17
18hi def link editorconfigProperty dosiniLabel
19
20let b:current_syntax = 'editorconfig'