patch 9.1.2059: filetype: Nickel files are not recognized
Commit:
https://github.com/vim/vim/commit/88f3ac34ea465dc6e74835e0c367220815f76a32
Author: Hoang Nguyen <[email protected]>
Date: Tue Jan 6 14:46:26 2026 +0000
patch 9.1.2059: filetype: Nickel files are not recognized
Problem: filetype: Nickel files are not recognized
Solution: Detect *.ncl files as nickel filetype
(Hoang Nguyen)
Reference:
- https://nickel-lang.org/getting-started/
- https://github.com/tweag/nickel/tree/master/examples
closes: #19102
Signed-off-by: Hoang Nguyen <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim
index 66028d0b1..d67f07ad0 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: 2026 Jan 02
+# Last Change: 2026 Jan 06
# Former Maintainer: Bram Moolenaar <[email protected]>
# These functions are moved here from runtime/filetype.vim to make startup
@@ -2368,6 +2368,8 @@ const ft_from_ext = {
# N1QL
"n1ql": "n1ql",
"nql": "n1ql",
+ # Nickel
+ "ncl": "nickel",
# Nim file
"nim": "nim",
"nims": "nim",
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index bebdefd83..23df47680 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -578,6 +578,7 @@ def s:GetFilenameChecks(): dict<list<string>>
neomuttrc: ['Neomuttrc', '.neomuttrc', '.neomuttrc-file',
'/.neomutt/neomuttrc', '/.neomutt/neomuttrc-file', 'Neomuttrc',
'Neomuttrc-file', 'any/.neomutt/neomuttrc', 'any/.neomutt/neomuttrc-file',
'neomuttrc', 'neomuttrc-file' ],
netrc: ['.netrc'],
nginx: ['file.nginx', 'nginxfile.conf', 'filenginx.conf',
'any/etc/nginx/file', 'any/usr/local/nginx/conf/file', 'any/nginx/file.conf'],
+ nickel: ['file.ncl'],
nim: ['file.nim', 'file.nims', 'file.nimble'],
ninja: ['file.ninja'],
nix: ['file.nix'],
diff --git a/src/version.c b/src/version.c
index 22df517ce..827847547 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 */
+/**/
+ 2059,
/**/
2058,
/**/
--
--
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/E1vd8XT-00H4kS-Qq%40256bit.org.