From: 0xadk <0xadk@users.noreply.github.com> Date: Wed, 2 Jul 2025 17:41:11 +0000 (+0200) Subject: patch 9.1.1503: filetype: haxe files are not recognized X-Git-Tag: v9.1.1503^0 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b46e3aa0fa08a9007c3f7115cb7a46d7389616b2;p=thirdparty%2Fvim.git patch 9.1.1503: filetype: haxe files are not recognized 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 --- diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 1236f08661..f019c75a11 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -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 diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 7323d1ed5c..2f5189d230 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -348,6 +348,7 @@ def s:GetFilenameChecks(): dict> haskellpersistent: ['file.persistentmodels'], haste: ['file.ht'], hastepreproc: ['file.htpp'], + haxe: ['file.hx'], hb: ['file.hb'], hcl: ['file.hcl'], heex: ['file.heex'], diff --git a/src/version.c b/src/version.c index 5f51af9a44..9b2b53c195 100644 --- a/src/version.c +++ b/src/version.c @@ -719,6 +719,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1503, /**/ 1502, /**/