Skip to content

Show spread syntax in struct hover - #104

Merged
Rigidity merged 1 commit into
mainfrom
fix-struct-hover-spread
Oct 12, 2026
Merged

Rigidity merged 1 commit into
mainfrom
fix-struct-hover-spread

Conversation

@Rigidity

@Rigidity Rigidity commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #92

Hovering over a non-nil-terminated struct now prefixes the last field with ..., matching the declaration syntax.


Note

Low Risk
Display-only LSP hover formatting; no type-checking or compilation behavior changes.

Overview
Struct hovers in the LSP now reflect spread syntax for non–nil-terminated structs.

StructHoverInfo carries nil_terminated from struct_fields, and hover rendering prefixes the last field with ... when the struct is not nil-terminated—matching how those types are written in source (fixes #92).

Reviewed by Cursor Bugbot for commit 934119e. Bugbot is set up for automated code reviews on this repo. Configure here.

@Rigidity
Rigidity merged commit 2566404 into main Oct 12, 2026
2 checks passed
@Rigidity
Rigidity deleted the fix-struct-hover-spread branch October 12, 2026 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hovering over struct doesn't show spread syntax

1 participant