patch 9.1.1045: filetype: N-Tripels and TriG files are not recognized
Commit:
https://github.com/vim/vim/commit/c04334c33f543a6b84a4442cf235d84f5eaef6bb
Author: Gordian Dziwis <[email protected]>
Date: Tue Jan 21 22:24:23 2025 +0100
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]>
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 6b323bd82..d2ff66226 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1,7 +1,7 @@
" Vim support file to detect file types
"
" Maintainer: The Vim Project <https://github.com/vim/vim>
-" Last Change: 2025 Jan 20
+" Last Change: 2025 Jan 21
" Former Maintainer: Bram Moolenaar <[email protected]>
" Listen very carefully, I will say this only once
@@ -1727,6 +1727,9 @@ au BufNewFile,BufRead *.nse setf lua
" NSIS
au BufNewFile,BufRead *.nsi,*.nsh setf nsis
+" N-Triples
+au BufNewFile,BufRead *.nt setf ntriples
+
" Nu
au BufNewFile,BufRead *.nu setf nu
@@ -2323,6 +2326,9 @@ au BufNewFile,BufRead
.tcshrc,*.tcsh,tcsh.tcshrc,tcsh.login call dist#ft#SetFile
" (patterns ending in a start further below)
au BufNewFile,BufRead
.login,.cshrc,csh.cshrc,csh.login,csh.logout,*.csh,.alias call dist#ft#CSH()
+" TriG
+au BufNewFile,BufRead *.trig setf trig
+
" Zig and Zig Object Notation (ZON)
au BufNewFile,BufRead *.zig,*.zon setf zig
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 9faa272a1..e5411af15 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -552,6 +552,7 @@ def s:GetFilenameChecks(): dict<list<string>>
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'],
@@ -817,6 +818,7 @@ def s:GetFilenameChecks(): dict<list<string>>
tpp: ['file.tpp'],
trace32: ['file.cmm', 'file.t32'],
treetop: ['file.treetop'],
+ trig: ['file.trig'],
trustees: ['trustees.conf'],
tsalt: ['file.slt'],
tsscl: ['file.tsscl'],
diff --git a/src/version.c b/src/version.c
index ad451d70a..fb5fd376e 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1045,
/**/
1044,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1taLoz-00A8u2-Lt%40256bit.org.