diff options
| author | Bradley Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-12-14 21:34:18 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-14 21:34:18 +1100 |
| commit | 79dc7bb79998428a96ab25f6c122dfc4c1909ac1 (patch) | |
| tree | edcdfe7cbf58dfacd96311cd4bccaab196f0aa0b /tests | |
| parent | 70efaf21cac9358b1b50e194e3401b07901b8f47 (diff) | |
| parent | 54a2a8e940018f8984e51e21fe94abf1ff0055fe (diff) | |
Merge pull request #1218 from BradLewis/feat/directive-docs
Add documentation for directives
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/hover_test.odin | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin index 81a26ce..6f8cecf 100644 --- a/tests/hover_test.odin +++ b/tests/hover_test.odin @@ -5950,6 +5950,16 @@ ast_hover_directives_load :: proc(t: ^testing.T) { } test.expect_hover(t, &source, "test.bar :: #load(\"foo.txt\")") } + +@(test) +ast_hover_directives_config_info :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + bar :: #c{*}onfig(TEST, false) + `, + } + test.expect_hover(t, &source, "#config(<identifier>, default)\n\nChecks if an identifier is defined through the command line, or gives a default value instead.\n\nValues can be set with the `-define:NAME=VALUE` command line flag.") +} /* Waiting for odin fix |