vim-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: vim/vim#17644

https://github.com/vim/vim/commit/b46e3aa0fa08a9007c3f7115cb7a46d7389616b2

Co-authored-by: 0xadk <0xadk@users.noreply.github.com>
This commit is contained in:
Christian Clasonand0xadk authored and Christian Clason committed 2025-07-03 09:18:18 +02:00
1 parent 18cfbf8fb2
commit 0a14ac3261
2 files changed
+2

No files matched your search

+1
View File
@@ -557,6 +557,7 @@ local extension = {
persistentmodels = 'haskellpersistent',
ht = 'haste',
htpp = 'hastepreproc',
hx = 'haxe',
hcl = 'hcl',
hb = 'hb',
h = detect.header,
+1
View File
@@ -348,6 +348,7 @@ func s:GetFilenameChecks() abort
\ 'haskellpersistent': ['file.persistentmodels'],
\ 'haste': ['file.ht'],
\ 'hastepreproc': ['file.htpp'],
\ 'haxe': ['file.hx'],
\ 'hb': ['file.hb'],
\ 'hcl': ['file.hcl'],
\ 'heex': ['file.heex'],