bingo/more #3

Merged
Stormzady merged 5 commits from bingo/more into zed-extension 2026-10-27 06:35:19 +00:00
Owner
No description provided.
`{$name}` could only insert a variable, so printing a field needed a temporary
first. Interpolation now takes a dotted path and reads each field in turn,
with the same type checks as goobie.name in code. A trailing dot or anything
else after the name is still a syntax error.

The LSP completes field names after `{$goobie.` too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Turning typed input into a number meant writing a helper with an Integer?
parameter. Integer[…] and String[…] now do the same conversion directly,
with the same compile-time checks and run-time errors as those parameters:
Integer["abc"] raises lumen.errors.types.mismatch.

They're [PLACEHOLDER]s in SPEC.md §15. The LSP hover docs mention them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A catch block couldn't tell what went wrong. With `as err` after the error
name (on a scan's catch or a global catch), the error is kept in err, and
err.name and err.message read its full name and message. Without `as`,
nothing changes.

The VM's GET_FIELD reads those two fields from an Error value. The LSP knows
err inside the block, and the tree-sitter grammar highlights `as`.

[PLACEHOLDER] in SPEC.md §15, since getting the error was undecided (§10.2).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The LSP could re-indent a document, but there was no way to format files
from the command line. The formatter now lives in the compiler crate as
lumen::format, and both use it:

    lumen fmt                  every .lmn in the project, in place
    lumen fmt FILE.lmn …       just those files
    lumen fmt --check …        list what would change, exit 1 if anything would

Besides re-indenting by bracket depth and trimming trailing spaces, it now
keeps at most one blank line in a row and ends the file with one newline.
It only ever changes whitespace.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stormzady merged commit 4959f798e2 into zed-extension 2026-10-27 06:35:19 +00:00
Stormzady deleted branch bingo/more 2026-10-27 06:35:23 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Stormzady/lumen!3
No description provided.