diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2026-01-24 09:27:19 +1100 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2026-01-24 09:27:19 +1100 |
| commit | 00955b4ddf08c2a87a53af72b25c0108f862d95e (patch) | |
| tree | 9f80c07e33cf7beba915511c47c6b2c1cefece02 /src/server/ast.odin | |
| parent | e21db4a48e04e558e0aa3a46e0bd7668168714e1 (diff) | |
Correctly resolve hover info for poly types in where clauses for procs
Diffstat (limited to 'src/server/ast.odin')
| -rw-r--r-- | src/server/ast.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/ast.odin b/src/server/ast.odin index 0547b83..42c0ba6 100644 --- a/src/server/ast.odin +++ b/src/server/ast.odin @@ -561,7 +561,7 @@ collect_globals :: proc(file: ast.File) -> []GlobalExpr { } get_ast_node_string :: proc(node: ^ast.Node, src: string) -> string { - return string(src[node.pos.offset:node.end.offset]) + return strings.trim_prefix(string(src[node.pos.offset:node.end.offset]), "$") } COMMENT_DELIMITER_LENGTH :: len("//") |