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:
zeertzjq
2025-01-23 16:33:41 +08:00
committed by GitHub
parent 4c9f3689a1
commit 28998e1f8a
2 changed files with 4 additions and 0 deletions

View File

@ -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',

View File

@ -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'],