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

Perl syntax handling broken when hash is dereferenced inside double quotes passed to print() #12314

Open
rphodges opened this issue Dec 22, 2024 · 0 comments
Labels
C-bug Category: This is a bug

Comments

@rphodges
Copy link

Summary

Perl syntax highlighting breaks when a hash is dereferenced in a double-quoted string passed to print()

Reproduction Steps

I tried this:

#!/usr/bin/env perl

print("Hello world.\n");
print("Key value: $hash->{'key'}\n");
print("Foo\n"); 

I expected this to happen:
I expected the third print statement to be highlighted appropriately.

Instead, this happened:
Screenshot 2024-12-21 at 4 23 05 PM

ts-subtree output:
Screenshot 2024-12-21 at 4 24 09 PM

I see that a similar problem was reported here: #9060. This is occurring after the update of the tree-sitter-perl package.

Helix log

~/.cache/helix/helix.log
please provide a copy of `~/.cache/helix/helix.log` here if possible, you may need to redact some of the lines

Platform

macOS

Terminal Emulator

Alacritty

Installation Method

brew

Helix Version

helix 24.7 (079f544)

@rphodges rphodges added the C-bug Category: This is a bug label Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

1 participant