From a23576849cec7cbe3d6f9e20afc28126ccb5a784 Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Sun, 30 Nov 2025 03:22:39 -0500 Subject: Fix indentation for doc comments using `/**/` within other procedures --- tests/hover_test.odin | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'tests/hover_test.odin') diff --git a/tests/hover_test.odin b/tests/hover_test.odin index 81c732a..e5e986f 100644 --- a/tests/hover_test.odin +++ b/tests/hover_test.odin @@ -5770,6 +5770,40 @@ ast_hover_type_assertion_unary_value_ok :: proc(t: ^testing.T) { } test.expect_hover(t, &source, "test.ok: bool") } + +@(test) +ast_hover_nested_proc_docs_tabs :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + + main :: proc() { + /* + Docs! + Docs2 + */ + f{*}oo :: proc() {} + } + `, + } + test.expect_hover(t, &source, "test.foo :: proc()\n\nDocs!\n\tDocs2\n") +} + +@(test) +ast_hover_nested_proc_docs_spaces :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + + main :: proc() { + /* + Docs! + Docs2 + */ + f{*}oo :: proc() {} + } + `, + } + test.expect_hover(t, &source, "test.foo :: proc()\n\nDocs!\n Docs2\n") +} /* Waiting for odin fix -- cgit v1.2.3