Skip to content

Commit 1fcf84d

Browse files
clasonRobbiZ98
andauthored
vim-patch:9.1.0196: filetype: support for gnuplot files is lacking (neovim#27972)
Problem: filetype: support for gnuplot files is lacking Solution: Also detect *.gnuplot files (RobbiZ98) closes: vim/vim#14243 vim/vim@3a6bd0c Co-authored-by: RobbiZ98 <[email protected]>
1 parent 8774dad commit 1fcf84d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: runtime/lua/vim/filetype.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,7 @@ local extension = {
466466
glsl = 'glsl',
467467
gn = 'gn',
468468
gni = 'gn',
469+
gnuplot = 'gnuplot',
469470
gpi = 'gnuplot',
470471
go = 'go',
471472
gp = 'gp',
@@ -1304,7 +1305,6 @@ local filename = {
13041305
['.gnashpluginrc'] = 'gnash',
13051306
gnashpluginrc = 'gnash',
13061307
gnashrc = 'gnash',
1307-
['.gnuplot'] = 'gnuplot',
13081308
['go.sum'] = 'gosum',
13091309
['go.work.sum'] = 'gosum',
13101310
['go.work'] = 'gowork',

Diff for: test/old/testdir/test_filetype.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ func s:GetFilenameChecks() abort
273273
\ 'glsl': ['file.glsl'],
274274
\ 'gn': ['file.gn', 'file.gni'],
275275
\ 'gnash': ['gnashrc', '.gnashrc', 'gnashpluginrc', '.gnashpluginrc'],
276-
\ 'gnuplot': ['file.gpi', '.gnuplot'],
276+
\ 'gnuplot': ['file.gpi', '.gnuplot', 'file.gnuplot'],
277277
\ 'go': ['file.go'],
278278
\ 'gomod': ['go.mod'],
279279
\ 'gosum': ['go.sum', 'go.work.sum'],

0 commit comments

Comments
 (0)