mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 01:34:25 +00:00 
			
		
		
		
	vim-patch:9.1.0242: filetype: octave history files are not recognized
Problem:  filetype: octave history files are not recognized
Solution: Detect octave/history files as octave
          (Wu, Zhenyu)
closes: vim/vim#14363
be71ac694f
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
			
			
This commit is contained in:
		@@ -1912,6 +1912,7 @@ local pattern = {
 | 
				
			|||||||
  ['.*%.[1-9]'] = detect.nroff,
 | 
					  ['.*%.[1-9]'] = detect.nroff,
 | 
				
			||||||
  ['.*%.ml%.cppo'] = 'ocaml',
 | 
					  ['.*%.ml%.cppo'] = 'ocaml',
 | 
				
			||||||
  ['.*%.mli%.cppo'] = 'ocaml',
 | 
					  ['.*%.mli%.cppo'] = 'ocaml',
 | 
				
			||||||
 | 
					  ['.*/octave/history'] = 'octave',
 | 
				
			||||||
  ['.*%.opam%.template'] = 'opam',
 | 
					  ['.*%.opam%.template'] = 'opam',
 | 
				
			||||||
  ['.*/openvpn/.*/.*%.conf'] = 'openvpn',
 | 
					  ['.*/openvpn/.*/.*%.conf'] = 'openvpn',
 | 
				
			||||||
  ['.*%.[Oo][Pp][Ll]'] = 'opl',
 | 
					  ['.*%.[Oo][Pp][Ll]'] = 'opl',
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -463,7 +463,7 @@ func s:GetFilenameChecks() abort
 | 
				
			|||||||
    \ 'obse': ['file.obl', 'file.obse', 'file.oblivion', 'file.obscript'],
 | 
					    \ 'obse': ['file.obl', 'file.obse', 'file.oblivion', 'file.obscript'],
 | 
				
			||||||
    \ 'ocaml': ['file.ml', 'file.mli', 'file.mll', 'file.mly', '.ocamlinit', 'file.mlt', 'file.mlp', 'file.mlip', 'file.mli.cppo', 'file.ml.cppo'],
 | 
					    \ 'ocaml': ['file.ml', 'file.mli', 'file.mll', 'file.mly', '.ocamlinit', 'file.mlt', 'file.mlp', 'file.mlip', 'file.mli.cppo', 'file.ml.cppo'],
 | 
				
			||||||
    \ 'occam': ['file.occ'],
 | 
					    \ 'occam': ['file.occ'],
 | 
				
			||||||
    \ 'octave': ['octaverc', '.octaverc', 'octave.conf'],
 | 
					    \ 'octave': ['octaverc', '.octaverc', 'octave.conf', 'any/.local/share/octave/history'],
 | 
				
			||||||
    \ 'odin': ['file.odin'],
 | 
					    \ 'odin': ['file.odin'],
 | 
				
			||||||
    \ 'omnimark': ['file.xom', 'file.xin'],
 | 
					    \ 'omnimark': ['file.xom', 'file.xin'],
 | 
				
			||||||
    \ 'opam': ['opam', 'file.opam', 'file.opam.template'],
 | 
					    \ 'opam': ['opam', 'file.opam', 'file.opam.template'],
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user