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

Fix start column of indentation token instances #1637

Merged

Conversation

aabounegm
Copy link
Member

I was not previously aware that chevrotain tokens are 1-indexed and started the indentation token from column 0 instead of 1. This caused an Error: Illegal argument: character must be non-negative when sending diagnostics, causing parse errors to not be shown to the user.

Chevrotain tokens are 1-indexed
Copy link
Member

@msujew msujew left a comment

Choose a reason for hiding this comment

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

Makes sense, thanks!

@msujew msujew merged commit cf2a376 into eclipse-langium:main Aug 21, 2024
4 checks passed
@aabounegm aabounegm deleted the hotfix/indentation-start-column branch August 21, 2024 12:27
@msujew msujew added this to the v3.2.0 milestone Aug 22, 2024
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