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

[BUGFIX] Make underscores work as first sign in a code role #546

Merged
merged 2 commits into from
Aug 20, 2023

Conversation

linawolf
Copy link
Contributor

This combination was interpreted as the end of a named reference, we were tokenizing to lax here.

PHPstan does not get that $lexer->moveNext() changes the content of $lexer->token, therefore instead of having to apply many quirks I generated a phpstan-baseline. I think the issue should be fixed in the lexer library by making $token private and a getToken method instead.

This combination was interpreted as the end of a named reference, we were tokenizing to lax here.

PHPstan does not get that $lexer->moveNext() changes the content of $lexer->token, therefore instead of having to apply many quirks I generated a phpstan-baseline. I think the issue should be fixed in the lexer library by making $token private and a getToken method instead.
remove all backtick-other signs combinations from InlineLexer
Copy link
Member

@jaapio jaapio left a comment

Choose a reason for hiding this comment

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

Sorry, I should read the description

@jaapio jaapio merged commit ecd40fd into main Aug 20, 2023
23 checks passed
@jaapio jaapio deleted the bugfix/code-with_underscore branch August 20, 2023 08:39
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