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

End-of-line ($) in group highlighted as variable in match operator #46

Open
chrstphrchvz opened this issue Feb 6, 2021 · 0 comments
Open

Comments

@chrstphrchvz
Copy link

In this example (from https://github.com/gisle/tkx/blob/2c96533/lib/Tkx.pm#L338), $) is highlighted as if it were an interpolated variable:

last if $pkg !~ /^Tkx(::|$)/;

Likewise $| would be highlighted in this equivalent statement:

last if $pkg !~ /^Tkx($|::)/;

However $ is highlighted correctly when using m// instead of //:

last if $pkg !~ m/^Tkx(::|$)/;
last if $pkg !~ m/^Tkx($|::)/;
chrstphrchvz added a commit to chrstphrchvz/tkx that referenced this issue Feb 6, 2021
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

No branches or pull requests

1 participant