diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-03-27 12:46:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-27 19:46:31 +0800 |
commit | 1fcf84d46a6b4af16e2cbe74a17821af664d48e6 (patch) | |
tree | e8f9ccb7e09ba245fc1ab704cbed22842ba80765 | |
parent | 8774dad1768dfe99df8d846171aa71df4d5ae1b5 (diff) | |
download | rneovim-1fcf84d46a6b4af16e2cbe74a17821af664d48e6.tar.gz rneovim-1fcf84d46a6b4af16e2cbe74a17821af664d48e6.tar.bz2 rneovim-1fcf84d46a6b4af16e2cbe74a17821af664d48e6.zip |
vim-patch:9.1.0196: filetype: support for gnuplot files is lacking (#27972)
Problem: filetype: support for gnuplot files is lacking
Solution: Also detect *.gnuplot files
(RobbiZ98)
closes: vim/vim#14243
https://github.com/vim/vim/commit/3a6bd0c5c743bf69d2e8af4c8b3c6b2cb5f3631a
Co-authored-by: RobbiZ98 <113035863+RobbiZ98@users.noreply.github.com>
-rw-r--r-- | runtime/lua/vim/filetype.lua | 2 | ||||
-rw-r--r-- | test/old/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 a69391be18..cb5b8fec7a 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -466,6 +466,7 @@ local extension = { glsl = 'glsl', gn = 'gn', gni = 'gn', + gnuplot = 'gnuplot', gpi = 'gnuplot', go = 'go', gp = 'gp', @@ -1304,7 +1305,6 @@ local filename = { ['.gnashpluginrc'] = 'gnash', gnashpluginrc = 'gnash', gnashrc = 'gnash', - ['.gnuplot'] = 'gnuplot', ['go.sum'] = 'gosum', ['go.work.sum'] = 'gosum', ['go.work'] = 'gowork', diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim index fc859cf3eb..c5e0d6808f 100644 --- a/test/old/testdir/test_filetype.vim +++ b/test/old/testdir/test_filetype.vim @@ -273,7 +273,7 @@ func s:GetFilenameChecks() abort \ 'glsl': ['file.glsl'], \ 'gn': ['file.gn', 'file.gni'], \ 'gnash': ['gnashrc', '.gnashrc', 'gnashpluginrc', '.gnashpluginrc'], - \ 'gnuplot': ['file.gpi', '.gnuplot'], + \ 'gnuplot': ['file.gpi', '.gnuplot', 'file.gnuplot'], \ 'go': ['file.go'], \ 'gomod': ['go.mod'], \ 'gosum': ['go.sum', 'go.work.sum'], |