diff options
author | Christian Clason <c.clason@uni-graz.at> | 2023-08-09 22:35:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-09 22:35:43 +0200 |
commit | 2e8f38690faf3b031138371066a5376f681549b8 (patch) | |
tree | 534a64d1223dc890cdeaa500b551e5bfc83e4078 | |
parent | 1904e5060edca066aa7ea0a9c470f5842a38d541 (diff) | |
download | rneovim-2e8f38690faf3b031138371066a5376f681549b8.tar.gz rneovim-2e8f38690faf3b031138371066a5376f681549b8.tar.bz2 rneovim-2e8f38690faf3b031138371066a5376f681549b8.zip |
vim-patch:b69b9d5e1753 (#24628)
Add filetype detection for eyaml files (vim/vim#12659)
https://github.com/voxpupuli/hiera-eyaml/ uses and produces the eyaml
format, which is simply yaml with some encrypted values.
It's convenient to edit the file without decrypting when not touching
encrypted values (or when you don't have access to the decryption key),
which is why vim should treat those files as yaml files.
https://github.com/vim/vim/commit/b69b9d5e175351c9a25507139954f6211f37fdd9
Co-authored-by: Max Gautier <mg@max.gautier.name>
-rw-r--r-- | runtime/lua/vim/filetype.lua | 1 | ||||
-rw-r--r-- | test/old/testdir/test_filetype.vim | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index b415247293..98938ddbf3 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -1093,6 +1093,7 @@ local extension = { yxx = 'yacc', yml = 'yaml', yaml = 'yaml', + eyaml = 'yaml', yang = 'yang', yuck = 'yuck', z8a = 'z8a', diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim index 4a95a7b45f..ba18d98814 100644 --- a/test/old/testdir/test_filetype.vim +++ b/test/old/testdir/test_filetype.vim @@ -720,7 +720,7 @@ func s:GetFilenameChecks() abort \ 'xsd': ['file.xsd'], \ 'xslt': ['file.xsl', 'file.xslt'], \ 'yacc': ['file.yy', 'file.yxx', 'file.y++'], - \ 'yaml': ['file.yaml', 'file.yml', '.clangd', '.clang-format', '.clang-tidy'], + \ 'yaml': ['file.yaml', 'file.yml', 'file.eyaml', '.clangd', '.clang-format', '.clang-tidy'], \ 'yang': ['file.yang'], \ 'yuck': ['file.yuck'], \ 'z8a': ['file.z8a'], |