Skip to content

Commit 28998e1

Browse files
vim-patch:9.1.1045: filetype: N-Tripels and TriG files are not recognized (neovim#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 vim/vim@c04334c Co-authored-by: Gordian Dziwis <[email protected]>
1 parent 4c9f368 commit 28998e1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

runtime/lua/vim/filetype.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,7 @@ local extension = {
845845
tr = 'nroff',
846846
nsi = 'nsis',
847847
nsh = 'nsis',
848+
nt = 'ntriples',
848849
nu = 'nu',
849850
obj = 'obj',
850851
objdump = 'objdump',
@@ -1240,6 +1241,7 @@ local extension = {
12401241
toml = 'toml',
12411242
tpp = 'tpp',
12421243
treetop = 'treetop',
1244+
trig = 'trig',
12431245
slt = 'tsalt',
12441246
tsscl = 'tsscl',
12451247
tssgm = 'tssgm',

test/old/testdir/test_filetype.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,7 @@ func s:GetFilenameChecks() abort
549549
\ 'nqc': ['file.nqc'],
550550
\ 'nroff': ['file.tr', 'file.nr', 'file.roff', 'file.tmac', 'file.mom', 'tmac.file'],
551551
\ 'nsis': ['file.nsi', 'file.nsh'],
552+
\ 'ntriples': ['file.nt'],
552553
\ 'nu': ['file.nu'],
553554
\ 'obj': ['file.obj'],
554555
\ 'objdump': ['file.objdump', 'file.cppobjdump'],
@@ -814,6 +815,7 @@ func s:GetFilenameChecks() abort
814815
\ 'tpp': ['file.tpp'],
815816
\ 'trace32': ['file.cmm', 'file.t32'],
816817
\ 'treetop': ['file.treetop'],
818+
\ 'trig': ['file.trig'],
817819
\ 'trustees': ['trustees.conf'],
818820
\ 'tsalt': ['file.slt'],
819821
\ 'tsscl': ['file.tsscl'],

0 commit comments

Comments
 (0)