neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 0a14ac326106a3aaf978009f045f9d8efca161eb
parent 18cfbf8fb2c709ec473afccf5c13dcb7301b6ab8
Author: Christian Clason <c.clason@uni-graz.at>
Date:   Wed,  2 Jul 2025 20:00:56 +0200

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>

Diffstat:
Mruntime/lua/vim/filetype.lua | 1+
Mtest/old/testdir/test_filetype.vim | 1+
2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua @@ -557,6 +557,7 @@ local extension = { persistentmodels = 'haskellpersistent', ht = 'haste', htpp = 'hastepreproc', + hx = 'haxe', hcl = 'hcl', hb = 'hb', h = detect.header, diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim @@ -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'],