diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-12-14 04:21:30 -0500 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-12-14 04:21:30 -0500 |
| commit | 29ccf52e9cef7dc77f0b42f58669eb7e539cd12f (patch) | |
| tree | 97d1fc8eb5ac252dc60ab1083365ca459705754d /tests/hover_test.odin | |
| parent | e9f9961537d7818e7a512f8dc43f6483c607b1a0 (diff) | |
Handle global call directives
Diffstat (limited to 'tests/hover_test.odin')
| -rw-r--r-- | tests/hover_test.odin | 20 |
1 files changed, 20 insertions, 0 deletions
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 |