aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBradley Lewis <22850972+BradLewis@users.noreply.github.com>2025-11-30 19:44:21 +1100
committerGitHub <noreply@github.com>2025-11-30 19:44:21 +1100
commit4e59e6d6e90bedc1aec9711a7b04b415faf19b8d (patch)
treef6e61e702e9ded2dd4a53963ef1fab9d96c7f6de /tests
parentb7aacba5b604f04cb33604632cf16af359208682 (diff)
parenta23576849cec7cbe3d6f9e20afc28126ccb5a784 (diff)
Merge pull request #1194 from BradLewis/fix/doc-comments-nested-types
Fix indentation for doc comments using `/**/` within other procedures
Diffstat (limited to 'tests')
-rw-r--r--tests/hover_test.odin34
1 files changed, 34 insertions, 0 deletions
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