Skip to content

Complete after a closer outside the value it ended - #445

Merged
holodorum merged 2 commits into
kson-org:mainfrom
holodorum:fix/value-closing
Sep 30, 2026
Merged

holodorum merged 2 commits into
kson-org:mainfrom
holodorum:fix/value-closing

Conversation

@holodorum

Copy link
Copy Markdown
Collaborator

A key or empty line after a closing }, ] or >, an end-dot or an end-dash completed inside the value it closed rather than where the parser puts the key. A span includes its end, so the closer's start found the container's last value instead of the container.

A caret past a closer now resolves from the closer's end, which finds the container itself. Hover and definition in whitespace after a closer likewise resolve to the closed value, not its last child.

A key or empty line after a closing `}`, `]` or `>`, an end-dot or an
end-dash completed inside the value it closed rather than where the
parser puts the key.  A span includes its end, so the closer's start
found the container's last value instead of the container.

A caret past a closer now resolves from the closer's end, which finds
the container itself.  Hover and definition in whitespace after a
closer likewise resolve to the closed value, not its last child.

@dmarcotte dmarcotte left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @holodorum! Looks great.

@holodorum
holodorum merged commit 9943bfa into kson-org:main Sep 30, 2026
1 check passed
@holodorum
holodorum deleted the fix/value-closing branch September 30, 2026 09:55
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.

2 participants