mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 01:34:25 +00: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:
		@@ -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'],
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user