Commit: patch 9.2.0046: filetype: neon files are not recoginzed

0 views
Skip to first unread message

Christian Brabandt

unread,
3:46 PM (7 hours ago) 3:46 PM
to vim...@googlegroups.com
patch 9.2.0046: filetype: neon files are not recoginzed

Commit: https://github.com/vim/vim/commit/ddd90672f2ddc170cb8f035e42302468f02d341a
Author: przepompownia <przepo...@users.noreply.github.com>
Date: Tue Feb 24 20:33:55 2026 +0000

patch 9.2.0046: filetype: neon files are not recoginzed

Problem: filetype: neon files are not recoginzed
Solution: Detect *.neon files as neon filetype
(przepompownia)

Reference:
https://doc.nette.org/en/neon/format
https://github.com/fpob/nette.vim

closes: #19496

Signed-off-by: przepompownia <przepo...@users.noreply.github.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim
index 30f3c1460..6cfcd350d 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 Feb 19
+# Last Change: 2026 Feb 24
# Former Maintainer: Bram Moolenaar <Br...@vim.org>

# These functions are moved here from runtime/filetype.vim to make startup
@@ -2382,6 +2382,8 @@ const ft_from_ext = {
# N1QL
"n1ql": "n1ql",
"nql": "n1ql",
+ # Neon
+ "neon": "neon",
# NetLinx
"axs": "netlinx",
"axi": "netlinx",
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 56046037a..5ffc11802 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -580,6 +580,7 @@ def s:GetFilenameChecks(): dict<list<string>>
ncf: ['file.ncf'],
neomuttlog: ['/home/user/.neomuttdebug1'],
neomuttrc: ['Neomuttrc', '.neomuttrc', '.neomuttrc-file', '/.neomutt/neomuttrc', '/.neomutt/neomuttrc-file', 'Neomuttrc', 'Neomuttrc-file', 'any/.neomutt/neomuttrc', 'any/.neomutt/neomuttrc-file', 'neomuttrc', 'neomuttrc-file' ],
+ neon: ['file.neon'],
netlinx: ['file.axs', 'file.axi'],
netrc: ['.netrc'],
nginx: ['file.nginx', 'nginxfile.conf', 'filenginx.conf', 'any/etc/nginx/file', 'any/usr/local/nginx/conf/file', 'any/nginx/file.conf'],
diff --git a/src/version.c b/src/version.c
index e255702ce..099a5fd0e 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 */
+/**/
+ 46,
/**/
45,
/**/
Reply all
Reply to author
Forward
0 new messages