mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +00:00
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:
committed by
Christian Clason
parent
18cfbf8fb2
commit
0a14ac3261
@ -557,6 +557,7 @@ local extension = {
|
||||
persistentmodels = 'haskellpersistent',
|
||||
ht = 'haste',
|
||||
htpp = 'hastepreproc',
|
||||
hx = 'haxe',
|
||||
hcl = 'hcl',
|
||||
hb = 'hb',
|
||||
h = detect.header,
|
||||
|
@ -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'],
|
||||
|
Reference in New Issue
Block a user