diff options
Diffstat (limited to '')
-rw-r--r-- | runtime/syntax/editorconfig.vim | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/runtime/syntax/editorconfig.vim b/runtime/syntax/editorconfig.vim new file mode 100644 index 0000000..6740624 --- /dev/null +++ b/runtime/syntax/editorconfig.vim @@ -0,0 +1,21 @@ +" Vim syntax file +" Language: EditorConfig +" Maintainer: Gregory Anders <greg@gpanders.com> +" Last Change: 2023-01-03 + +if exists('b:current_syntax') + finish +endif + +runtime! syntax/dosini.vim +unlet! b:current_syntax + +syntax match editorconfigUnknownProperty "^\s*\zs\w\+\ze\s*=" + +syntax keyword editorconfigProperty root charset end_of_line indent_style +syntax keyword editorconfigProperty indent_size tab_width max_line_length +syntax keyword editorconfigProperty trim_trailing_whitespace insert_final_newline + +hi def link editorconfigProperty dosiniLabel + +let b:current_syntax = 'editorconfig' |