patch 9.1.1980: filetype: N-Quads files are not recognized
Commit:
https://github.com/vim/vim/commit/6c027b25f114595a21fcb5031abe366349ad5a9c
Author: Gordian Dziwis <[email protected]>
Date: Sun Dec 14 16:51:34 2025 +0100
patch 9.1.1980: filetype: N-Quads files are not recognized
Problem: filetype: N-Quads files are not recognized
Solution: Detect *.nq files as nq filetype
Reference:
- https://www.w3.org/TR/n-quads/
closes: #18923
Signed-off-by: Gordian Dziwis <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim
index 56ac56606..c6f05d09e 100644
--- a/runtime/autoload/dist/ft.vim
+++ b/runtime/autoload/dist/ft.vim
@@ -3,7 +3,7 @@ vim9script
# Vim functions for file type detection
#
# Maintainer: The Vim Project <https://github.com/vim/vim>
-# Last Change: 2025 Dec 07
+# Last Change: 2025 Dec 14
# Former Maintainer: Bram Moolenaar <[email protected]>
# These functions are moved here from runtime/filetype.vim to make startup
@@ -2371,6 +2371,8 @@ const ft_from_ext = {
"norg": "norg",
# Novell netware batch files
"ncf": "ncf",
+ # N-Quads
+ "nq": "nq",
# Not Quite C
"nqc": "nqc",
# NSE - Nmap Script Engine - uses Lua syntax
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 0681afcd6..65f8bae32 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -578,6 +578,7 @@ def s:GetFilenameChecks(): dict<list<string>>
ninja: ['file.ninja'],
nix: ['file.nix'],
norg: ['file.norg'],
+ nq: ['file.nq'],
nqc: ['file.nqc'],
nroff: ['file.tr', 'file.nr', 'file.roff', 'file.tmac', 'tmac.file'],
nsis: ['file.nsi', 'file.nsh'],
diff --git a/src/version.c b/src/version.c
index d62c453f1..e75a9782c 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1980,
/**/
1979,
/**/
--
--
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/E1vUoVv-00Erff-Tz%40256bit.org.