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

b46e3aa0fa

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

View File

@ -557,6 +557,7 @@ local extension = {
persistentmodels = 'haskellpersistent',
ht = 'haste',
htpp = 'hastepreproc',
hx = 'haxe',
hcl = 'hcl',
hb = 'hb',
h = detect.header,

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'],