diff options
author | Christian Clason <c.clason@uni-graz.at> | 2022-10-20 22:49:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-20 22:49:22 +0200 |
commit | 45ae5c6dc5af63957eb2009e0425d91a3cc79d66 (patch) | |
tree | ccf2968b971c947db847656074e3623243dc4c04 | |
parent | ba887da97708545f1174e387b4807119ad5a40f6 (diff) | |
download | rneovim-45ae5c6dc5af63957eb2009e0425d91a3cc79d66.tar.gz rneovim-45ae5c6dc5af63957eb2009e0425d91a3cc79d66.tar.bz2 rneovim-45ae5c6dc5af63957eb2009e0425d91a3cc79d66.zip |
vim-patch:9.0.0808: jsonnet filetype detection has a typo (#20753)
Problem: jsonnet filetype detection has a typo.
Solution: Change "libjsonnet" to "libsonnet". (Maxime Brunet, closes vim/vim#11412)
https://github.com/vim/vim/commit/6c8bc37a1083d17447156592f6f52da2d40b4855
-rw-r--r-- | runtime/lua/vim/filetype.lua | 2 | ||||
-rw-r--r-- | src/nvim/testdir/test_filetype.vim | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index af2617677e..a574ab1942 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -564,7 +564,7 @@ local extension = { json5 = 'json5', jsonc = 'jsonc', jsonnet = 'jsonnet', - libjsonnet = 'jsonnet', + libsonnet = 'jsonnet', jsp = 'jsp', jl = 'julia', kv = 'kivy', diff --git a/src/nvim/testdir/test_filetype.vim b/src/nvim/testdir/test_filetype.vim index 44711e3fcc..3888a384c7 100644 --- a/src/nvim/testdir/test_filetype.vim +++ b/src/nvim/testdir/test_filetype.vim @@ -291,7 +291,7 @@ let s:filename_checks = { \ 'json': ['file.json', 'file.jsonp', 'file.json-patch', 'file.webmanifest', 'Pipfile.lock', 'file.ipynb', '.babelrc', '.eslintrc', '.prettierrc', '.firebaserc', 'file.slnf'], \ 'json5': ['file.json5'], \ 'jsonc': ['file.jsonc'], - \ 'jsonnet': ['file.jsonnet', 'file.libjsonnet'], + \ 'jsonnet': ['file.jsonnet', 'file.libsonnet'], \ 'jsp': ['file.jsp'], \ 'julia': ['file.jl'], \ 'kconfig': ['Kconfig', 'Kconfig.debug', 'Kconfig.file'], |