diff options
author | Gregory Anders <greg@gpanders.com> | 2023-01-09 20:08:00 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-01-09 20:08:00 +0000 |
commit | d41262ed06564cef98a3800e2928e6e0db91abbf (patch) | |
tree | 100b220909760a7b0d9534c84e1353126cd13c12 | |
parent | 1cfb14aa972ccf3235ac67f07b7db1175b7c5384 (diff) |
patch 9.0.1167: EditorConfig files do not have their own filetypev9.0.1167
Problem: EditorConfig files do not have their own filetype.
Solution: Add the "editorconfig" filetype. (Gregory Anders, closes #11779)
-rw-r--r-- | runtime/filetype.vim | 4 | ||||
-rw-r--r-- | src/testdir/test_filetype.vim | 3 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index c659de8477..22f6d1c41e 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -606,8 +606,8 @@ au BufNewFile,BufRead *.edn \ setf clojure | \ endif -" EditorConfig (close enough to dosini) -au BufNewFile,BufRead .editorconfig setf dosini +" EditorConfig +au BufNewFile,BufRead .editorconfig setf editorconfig " Embedix Component Description au BufNewFile,BufRead *.ecd setf ecd diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 77e68c7ea0..9dfb1a4920 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -160,7 +160,7 @@ let s:filename_checks = { \ 'dnsmasq': ['/etc/dnsmasq.conf', '/etc/dnsmasq.d/file', 'any/etc/dnsmasq.conf', 'any/etc/dnsmasq.d/file'], \ 'dockerfile': ['Containerfile', 'Dockerfile', 'dockerfile', 'file.Dockerfile', 'file.dockerfile', 'Dockerfile.debian', 'Containerfile.something'], \ 'dosbatch': ['file.bat'], - \ 'dosini': ['.editorconfig', '/etc/yum.conf', 'file.ini', 'npmrc', '.npmrc', 'php.ini', 'php.ini-5', 'php.ini-file', '/etc/yum.repos.d/file', 'any/etc/yum.conf', 'any/etc/yum.repos.d/file', 'file.wrap'], + \ 'dosini': ['/etc/yum.conf', 'file.ini', 'npmrc', '.npmrc', 'php.ini', 'php.ini-5', 'php.ini-file', '/etc/yum.repos.d/file', 'any/etc/yum.conf', 'any/etc/yum.repos.d/file', 'file.wrap'], \ 'dot': ['file.dot', 'file.gv'], \ 'dracula': ['file.drac', 'file.drc', 'filelvs', 'filelpe', 'drac.file', 'lpe', 'lvs', 'some-lpe', 'some-lvs'], \ 'dtd': ['file.dtd'], @@ -172,6 +172,7 @@ let s:filename_checks = { \ 'dylanlid': ['file.lid'], \ 'ecd': ['file.ecd'], \ 'edif': ['file.edf', 'file.edif', 'file.edo'], + \ 'editorconfig': ['.editorconfig'], \ 'eelixir': ['file.eex', 'file.leex'], \ 'elinks': ['elinks.conf'], \ 'elixir': ['file.ex', 'file.exs', 'mix.lock'], diff --git a/src/version.c b/src/version.c index 6bddfff3c2..a218a71a08 100644 --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1167, +/**/ 1166, /**/ 1165, |