aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-07-19 19:36:42 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-07-22 18:48:23 -0400
commitddd6485f6ea68e445ee893721b2696aa2ab91bc4 (patch)
treef90f30517bfca81476f48a8a15cf0dd58d9bc607 /tests
parent4eda03d0564acbbd577edb54183f4443fbdd0e94 (diff)
Add proc directives to hover information
Diffstat (limited to 'tests')
-rw-r--r--tests/hover_test.odin10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin
index df7aeae..4f81238 100644
--- a/tests/hover_test.odin
+++ b/tests/hover_test.odin
@@ -2803,6 +2803,16 @@ ast_hover_proc_calling_convention :: proc(t: ^testing.T) {
}
test.expect_hover(t, &source, "test.foo: proc \"contextless\" (a: int)")
}
+
+@(test)
+ast_hover_proc_directives :: proc(t: ^testing.T) {
+ source := test.Source {
+ main = `package test
+ f{*}oo :: proc(a: int) #no_bounds_check {}
+ `,
+ }
+ test.expect_hover(t, &source, "test.foo: proc(a: int) #no_bounds_check")
+}
/*
Waiting for odin fix