From 29ccf52e9cef7dc77f0b42f58669eb7e539cd12f Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Sun, 14 Dec 2025 04:21:30 -0500 Subject: Handle global call directives --- tests/hover_test.odin | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'tests') diff --git a/tests/hover_test.odin b/tests/hover_test.odin index 51a2edc..81a26ce 100644 --- a/tests/hover_test.odin +++ b/tests/hover_test.odin @@ -5930,6 +5930,26 @@ ast_hover_directives_load_hash_local :: proc(t: ^testing.T) { } test.expect_hover(t, &source, "test.bar: int") } + +@(test) +ast_hover_directives_config :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + b{*}ar :: #config(TEST, false) + `, + } + test.expect_hover(t, &source, "test.bar :: #config(TEST, false)") +} + +@(test) +ast_hover_directives_load :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + b{*}ar :: #load("foo.txt") + `, + } + test.expect_hover(t, &source, "test.bar :: #load(\"foo.txt\")") +} /* Waiting for odin fix -- cgit v1.2.3