]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.2109: filetype: NetLinx fires are not recognized v9.1.2109
authorkb <kim@simple.industries>
Sun, 25 Jan 2026 14:59:49 +0000 (14:59 +0000)
committerChristian Brabandt <cb@256bit.org>
Sun, 25 Jan 2026 14:59:49 +0000 (14:59 +0000)
Problem:  filetype: NetLinx fires are not recognized
Solution: Detect *.axs and *.axi as netlinx filetype
          (kb).

Reference:
- https://www.amx.com/en/site_elements/amx-language-reference-guide-netlinx-programming-language
- https://kielthecoder.com/2021/06/11/netlinx-getting-started/

closes: #19249

Signed-off-by: kb <kim@simple.industries>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/autoload/dist/ft.vim
src/testdir/test_filetype.vim
src/version.c

index 0d3b1e7ebf6d1add8d5d1bfed493e09cf2c868d9..9d68c3d214f4424f41f07bc95b91cc62c0c7b4e1 100644 (file)
@@ -3,7 +3,7 @@ vim9script
 # Vim functions for file type detection
 #
 # Maintainer:          The Vim Project <https://github.com/vim/vim>
-# Last Change:         2026 Jan 20
+# Last Change:         2026 Jan 25
 # Former Maintainer:   Bram Moolenaar <Bram@vim.org>
 
 # These functions are moved here from runtime/filetype.vim to make startup
@@ -2373,6 +2373,9 @@ const ft_from_ext = {
   # N1QL
   "n1ql": "n1ql",
   "nql": "n1ql",
+  # NetLinx
+  "axs": "netlinx",
+  "axi": "netlinx",
   # Nickel
   "ncl": "nickel",
   # Nim file
index a082b4fb9fd36928eadcf644bd08997519c196f3..078019bc5f9a0b714691089f35f414b4c6cdd67a 100644 (file)
@@ -578,6 +578,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' ],
+    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'],
     nickel: ['file.ncl'],
index a3c72bdd2a4680a5fd58e83da74b86119c766f97..f97ecf4fabcb43a968fc2141f0bd510c98f88bd3 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2109,
 /**/
     2108,
 /**/