Skip to content

Commit c04334c

Browse files
GordianDziwischrisbra
authored andcommitted
patch 9.1.1045: filetype: N-Tripels and TriG files are not recognized
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: #16493 Signed-off-by: Gordian Dziwis <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent d9a1f26 commit c04334c

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

runtime/filetype.vim

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim support file to detect file types
22
"
33
" Maintainer: The Vim Project <https://github.com/vim/vim>
4-
" Last Change: 2025 Jan 20
4+
" Last Change: 2025 Jan 21
55
" Former Maintainer: Bram Moolenaar <[email protected]>
66

77
" Listen very carefully, I will say this only once
@@ -1727,6 +1727,9 @@ au BufNewFile,BufRead *.nse setf lua
17271727
" NSIS
17281728
au BufNewFile,BufRead *.nsi,*.nsh setf nsis
17291729

1730+
" N-Triples
1731+
au BufNewFile,BufRead *.nt setf ntriples
1732+
17301733
" Nu
17311734
au BufNewFile,BufRead *.nu setf nu
17321735

@@ -2323,6 +2326,9 @@ au BufNewFile,BufRead .tcshrc,*.tcsh,tcsh.tcshrc,tcsh.login call dist#ft#SetFile
23232326
" (patterns ending in a start further below)
23242327
au BufNewFile,BufRead .login,.cshrc,csh.cshrc,csh.login,csh.logout,*.csh,.alias call dist#ft#CSH()
23252328

2329+
" TriG
2330+
au BufNewFile,BufRead *.trig setf trig
2331+
23262332
" Zig and Zig Object Notation (ZON)
23272333
au BufNewFile,BufRead *.zig,*.zon setf zig
23282334

src/testdir/test_filetype.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,7 @@ def s:GetFilenameChecks(): dict<list<string>>
552552
nqc: ['file.nqc'],
553553
nroff: ['file.tr', 'file.nr', 'file.roff', 'file.tmac', 'file.mom', 'tmac.file'],
554554
nsis: ['file.nsi', 'file.nsh'],
555+
ntriples: ['file.nt'],
555556
nu: ['file.nu'],
556557
obj: ['file.obj'],
557558
objdump: ['file.objdump', 'file.cppobjdump'],
@@ -817,6 +818,7 @@ def s:GetFilenameChecks(): dict<list<string>>
817818
tpp: ['file.tpp'],
818819
trace32: ['file.cmm', 'file.t32'],
819820
treetop: ['file.treetop'],
821+
trig: ['file.trig'],
820822
trustees: ['trustees.conf'],
821823
tsalt: ['file.slt'],
822824
tsscl: ['file.tsscl'],

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ static char *(features[]) =
704704

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
1045,
707709
/**/
708710
1044,
709711
/**/

0 commit comments

Comments
 (0)