Mercurial > vim
diff runtime/syntax/editorconfig.vim @ 31671:5ed19049b1e8
Update runtime files
Commit: https://github.com/vim/vim/commit/1b5f03ec9c5551047d5de8d845541dd3201abe7c
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jan 9 20:12:45 2023 +0000
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 09 Jan 2023 21:15:05 +0100 |
parents | |
children | 31b68cad57cc |
line wrap: on
line diff
new file mode 100644 --- /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'