patch 9.1.1503: filetype: haxe files are not recognized
Commit:
https://github.com/vim/vim/commit/b46e3aa0fa08a9007c3f7115cb7a46d7389616b2
Author: 0xadk <[email protected]>
Date: Wed Jul 2 19:41:11 2025 +0200
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 <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 1236f0866..f019c75a1 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 7323d1ed5..2f5189d23 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -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'],
diff --git a/src/version.c b/src/version.c
index 5f51af9a4..9b2b53c19 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,
/**/
--
--
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/E1uX1W4-00Gmt5-Ck%40256bit.org.