mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
vim-patch:9.1.1045: filetype: N-Tripels and TriG files are not recognized (#32170)
Problem: filetype: N-Tripels and TriG files are not recognized
Solution: detect '*.nt' files as ntriples filetype and '*.trig' files
as trig filetype (Gordian Dziwis)
closes: vim/vim#16493
c04334c33f
Co-authored-by: Gordian Dziwis <gordian@dziw.is>
This commit is contained in:
@ -845,6 +845,7 @@ local extension = {
|
||||
tr = 'nroff',
|
||||
nsi = 'nsis',
|
||||
nsh = 'nsis',
|
||||
nt = 'ntriples',
|
||||
nu = 'nu',
|
||||
obj = 'obj',
|
||||
objdump = 'objdump',
|
||||
@ -1240,6 +1241,7 @@ local extension = {
|
||||
toml = 'toml',
|
||||
tpp = 'tpp',
|
||||
treetop = 'treetop',
|
||||
trig = 'trig',
|
||||
slt = 'tsalt',
|
||||
tsscl = 'tsscl',
|
||||
tssgm = 'tssgm',
|
||||
|
@ -549,6 +549,7 @@ func s:GetFilenameChecks() abort
|
||||
\ 'nqc': ['file.nqc'],
|
||||
\ 'nroff': ['file.tr', 'file.nr', 'file.roff', 'file.tmac', 'file.mom', 'tmac.file'],
|
||||
\ 'nsis': ['file.nsi', 'file.nsh'],
|
||||
\ 'ntriples': ['file.nt'],
|
||||
\ 'nu': ['file.nu'],
|
||||
\ 'obj': ['file.obj'],
|
||||
\ 'objdump': ['file.objdump', 'file.cppobjdump'],
|
||||
@ -814,6 +815,7 @@ func s:GetFilenameChecks() abort
|
||||
\ 'tpp': ['file.tpp'],
|
||||
\ 'trace32': ['file.cmm', 'file.t32'],
|
||||
\ 'treetop': ['file.treetop'],
|
||||
\ 'trig': ['file.trig'],
|
||||
\ 'trustees': ['trustees.conf'],
|
||||
\ 'tsalt': ['file.slt'],
|
||||
\ 'tsscl': ['file.tsscl'],
|
||||
|
Reference in New Issue
Block a user