From 1cdd2c32f9bbfff0cec21de0b139e691b5e08d4f Mon Sep 17 00:00:00 2001 From: Ben Woodward <1472981+benwoodward@users.noreply.github.com> Date: Fri, 12 Dec 2025 17:55:41 +1100 Subject: [PATCH] fix: resolve .hx extension conflict with Haxe Neovim's built-in filetype detection maps .hx to 'haxe', which caused the test framework to attempt loading haxe.so instead of helixql.so. Changes: - Renamed test file from test.hx to test.helixql - Added vim modeline to ensure correct filetype detection - Removed helixql filetype mapping (not needed and doesn't override Neovim's built-in detection anyway) --- plugin/filetypes.lua | 1 - tests/query/highlights/helixql/{test.hx => test.helixql} | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) rename tests/query/highlights/helixql/{test.hx => test.helixql} (98%) diff --git a/plugin/filetypes.lua b/plugin/filetypes.lua index 3d49ba514..7759c1f5c 100644 --- a/plugin/filetypes.lua +++ b/plugin/filetypes.lua @@ -20,7 +20,6 @@ local filetypes = { godot_resource = { 'gdresource' }, haskell = { 'hs' }, haskell_persistent = { 'haskellpersistent' }, - helixql = { 'hx' }, idris = { 'idris2' }, ini = { 'confini', 'dosini' }, janet_simple = { 'janet' }, diff --git a/tests/query/highlights/helixql/test.hx b/tests/query/highlights/helixql/test.helixql similarity index 98% rename from tests/query/highlights/helixql/test.hx rename to tests/query/highlights/helixql/test.helixql index d65ba6ceb..a13d5410b 100644 --- a/tests/query/highlights/helixql/test.hx +++ b/tests/query/highlights/helixql/test.helixql @@ -120,3 +120,5 @@ QUERY testLiterals() => b <- true // ^ @boolean RETURN NONE + +// vim: set filetype=helixql: