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

3a6bd0c5c7

Co-authored-by: RobbiZ98 <113035863+RobbiZ98@users.noreply.github.com>
This commit is contained in:
Christian Clason 2024-03-27 12:46:31 +01:00 committed by GitHub
parent 8774dad176
commit 1fcf84d46a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -466,6 +466,7 @@ local extension = {
glsl = 'glsl', glsl = 'glsl',
gn = 'gn', gn = 'gn',
gni = 'gn', gni = 'gn',
gnuplot = 'gnuplot',
gpi = 'gnuplot', gpi = 'gnuplot',
go = 'go', go = 'go',
gp = 'gp', gp = 'gp',
@ -1304,7 +1305,6 @@ local filename = {
['.gnashpluginrc'] = 'gnash', ['.gnashpluginrc'] = 'gnash',
gnashpluginrc = 'gnash', gnashpluginrc = 'gnash',
gnashrc = 'gnash', gnashrc = 'gnash',
['.gnuplot'] = 'gnuplot',
['go.sum'] = 'gosum', ['go.sum'] = 'gosum',
['go.work.sum'] = 'gosum', ['go.work.sum'] = 'gosum',
['go.work'] = 'gowork', ['go.work'] = 'gowork',

View File

@ -273,7 +273,7 @@ func s:GetFilenameChecks() abort
\ 'glsl': ['file.glsl'], \ 'glsl': ['file.glsl'],
\ 'gn': ['file.gn', 'file.gni'], \ 'gn': ['file.gn', 'file.gni'],
\ 'gnash': ['gnashrc', '.gnashrc', 'gnashpluginrc', '.gnashpluginrc'], \ 'gnash': ['gnashrc', '.gnashrc', 'gnashpluginrc', '.gnashpluginrc'],
\ 'gnuplot': ['file.gpi', '.gnuplot'], \ 'gnuplot': ['file.gpi', '.gnuplot', 'file.gnuplot'],
\ 'go': ['file.go'], \ 'go': ['file.go'],
\ 'gomod': ['go.mod'], \ 'gomod': ['go.mod'],
\ 'gosum': ['go.sum', 'go.work.sum'], \ 'gosum': ['go.sum', 'go.work.sum'],