]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1503: filetype: haxe files are not recognized v9.1.1503
author0xadk <0xadk@users.noreply.github.com>
Wed, 2 Jul 2025 17:41:11 +0000 (19:41 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 2 Jul 2025 17:41:11 +0000 (19:41 +0200)
Problem:  filetype: haxe files are not recognized
Solution: detect *.hx files as haxe filetype (0xadk)

References:
- https://haxe.org/
- https://code.haxe.org/category/beginner/hello-world.html

closes: #17644

Signed-off-by: 0xadk <0xadk@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 1236f0866123d0fe774c59a51b9a6cdebbbdc063..f019c75a11af72325046c0f4f92a6b3f4c537ea3 100644 (file)
@@ -1100,6 +1100,9 @@ au BufNewFile,BufRead *.persistentmodels  setf haskellpersistent
 au BufNewFile,BufRead *.ht                     setf haste
 au BufNewFile,BufRead *.htpp                   setf hastepreproc
 
+" Haxe
+au BufNewFile,BufRead *.hx                     setf haxe
+
 " HCL
 au BufRead,BufNewFile *.hcl                    setf hcl
 
index 7323d1ed5c8e34a98391d235156eb67a99b3ddcb..2f5189d230b19ba900880f5463c0a69011da2f2f 100644 (file)
@@ -348,6 +348,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     haskellpersistent: ['file.persistentmodels'],
     haste: ['file.ht'],
     hastepreproc: ['file.htpp'],
+    haxe: ['file.hx'],
     hb: ['file.hb'],
     hcl: ['file.hcl'],
     heex: ['file.heex'],
index 5f51af9a44013ab4f6a9d5b98759f94e18f5e669..9b2b53c1954be0d6eab3279543e6ded5775f6991 100644 (file)
@@ -719,6 +719,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1503,
 /**/
     1502,
 /**/