Skip to content

Conversation

@alok
Copy link
Contributor

@alok alok commented Dec 28, 2025

This PR improves the parser error message when a keyword/token is used where an identifier is expected.

Before: unexpected token 'if'
After: unexpected token \if`; if you intended to use it as an identifier, use `«if»``

Only shows the hint when an identifier is expected and the token is valid for escaping.


Suggested label: changelog-language

@alok alok force-pushed the feat/guillemet-hint-minimal branch 3 times, most recently from b12f952 to b243717 Compare December 29, 2025 00:14
…cted

When a token/keyword appears where an identifier is expected, the error
message now suggests wrapping it in guillemets (e.g., `«if»`).
@alok alok force-pushed the feat/guillemet-hint-minimal branch from b243717 to a39d9c6 Compare December 29, 2025 00:16
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.

1 participant