Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Populate the Token.end_* fields for ignored tokens #1309

Conversation

jtbraun
Copy link
Contributor

@jtbraun jtbraun commented Jul 21, 2023

Lexer callbacks can make use of the Token.end_* fields too, even for Ignored tokens. Always populate them.

This preserves the behavior where Token objects are only created if they are used.

Lexer callbacks can make use of the `Token.end_*` fields too, even for
Ignored tokens. Always populate them.

This preserves the behavior where `Token` objects are only created if
they are used.
@erezsh erezsh merged commit 360040d into lark-parser:master Jul 22, 2023
9 checks passed
@erezsh
Copy link
Member

erezsh commented Jul 22, 2023

Thank you for contributing!

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.

3 participants