mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
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:
parent
8774dad176
commit
1fcf84d46a
@ -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',
|
||||||
|
@ -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'],
|
||||||
|
Loading…
Reference in New Issue
Block a user