mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +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',
|
tr = 'nroff',
|
||||||
nsi = 'nsis',
|
nsi = 'nsis',
|
||||||
nsh = 'nsis',
|
nsh = 'nsis',
|
||||||
|
nt = 'ntriples',
|
||||||
nu = 'nu',
|
nu = 'nu',
|
||||||
obj = 'obj',
|
obj = 'obj',
|
||||||
objdump = 'objdump',
|
objdump = 'objdump',
|
||||||
@@ -1240,6 +1241,7 @@ local extension = {
|
|||||||
toml = 'toml',
|
toml = 'toml',
|
||||||
tpp = 'tpp',
|
tpp = 'tpp',
|
||||||
treetop = 'treetop',
|
treetop = 'treetop',
|
||||||
|
trig = 'trig',
|
||||||
slt = 'tsalt',
|
slt = 'tsalt',
|
||||||
tsscl = 'tsscl',
|
tsscl = 'tsscl',
|
||||||
tssgm = 'tssgm',
|
tssgm = 'tssgm',
|
||||||
|
@@ -549,6 +549,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ 'nqc': ['file.nqc'],
|
\ 'nqc': ['file.nqc'],
|
||||||
\ 'nroff': ['file.tr', 'file.nr', 'file.roff', 'file.tmac', 'file.mom', 'tmac.file'],
|
\ 'nroff': ['file.tr', 'file.nr', 'file.roff', 'file.tmac', 'file.mom', 'tmac.file'],
|
||||||
\ 'nsis': ['file.nsi', 'file.nsh'],
|
\ 'nsis': ['file.nsi', 'file.nsh'],
|
||||||
|
\ 'ntriples': ['file.nt'],
|
||||||
\ 'nu': ['file.nu'],
|
\ 'nu': ['file.nu'],
|
||||||
\ 'obj': ['file.obj'],
|
\ 'obj': ['file.obj'],
|
||||||
\ 'objdump': ['file.objdump', 'file.cppobjdump'],
|
\ 'objdump': ['file.objdump', 'file.cppobjdump'],
|
||||||
@@ -814,6 +815,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ 'tpp': ['file.tpp'],
|
\ 'tpp': ['file.tpp'],
|
||||||
\ 'trace32': ['file.cmm', 'file.t32'],
|
\ 'trace32': ['file.cmm', 'file.t32'],
|
||||||
\ 'treetop': ['file.treetop'],
|
\ 'treetop': ['file.treetop'],
|
||||||
|
\ 'trig': ['file.trig'],
|
||||||
\ 'trustees': ['trustees.conf'],
|
\ 'trustees': ['trustees.conf'],
|
||||||
\ 'tsalt': ['file.slt'],
|
\ 'tsalt': ['file.slt'],
|
||||||
\ 'tsscl': ['file.tsscl'],
|
\ 'tsscl': ['file.tsscl'],
|
||||||
|
Reference in New Issue
Block a user