Skip to content

Conversation

@dmitrii-ubskii
Copy link
Member

@dmitrii-ubskii dmitrii-ubskii commented Dec 17, 2025

Product change and motivation

We use XID_START and XID_CONTINUE character classes provided by pest instead of manually listing unicode codepoint ranges for our identifiers. We also change the definition of the word boundary (WB) to be "any character that is not an identifier continuation character" that resolves parsing bugs such as let $var= 4; failing to parse: = is not PUNCTUATION, so not valid word boundary.

Implementation

@dmitrii-ubskii dmitrii-ubskii changed the title use XID_START and XID_CONTINUE directly Use XID_START and XID_CONTINUE character classes Dec 18, 2025
@dmitrii-ubskii dmitrii-ubskii marked this pull request as ready for review December 18, 2025 10:26
| '\u{203F}'..'\u{2040}'
}
IDENTIFIER_START = @{ XID_START }
IDENTIFIER_CONTINUE = @{ "-" | XID_CONTINUE }
Copy link
Member Author

Choose a reason for hiding this comment

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

- is not in XID_CONTINUE, but a valid continuation character in TypeQL identifiers.

@dmitrii-ubskii dmitrii-ubskii changed the base branch from master to 2025-christmas December 18, 2025 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants