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

[BUG] perl highlighter picks wrong parts #5070

Open
Veraellyunjie opened this issue Jan 4, 2024 · 0 comments
Open

[BUG] perl highlighter picks wrong parts #5070

Veraellyunjie opened this issue Jan 4, 2024 · 0 comments
Labels

Comments

@Veraellyunjie
Copy link

Veraellyunjie commented Jan 4, 2024

Version of Kakoune

v2022.10.31

Reproducer

Put the following snippets to a file with .pl extension and open in kakoune. Or paste and issue :set buffer filetype perl

$dirs{purpose}{type};  # nested hash wrong highlighting
    s{from}{to};       # confused with substitution

$time_from/$divided/$divided_again;  # division wrong highlighting
         m/regex/;                   # confused with regex match

# 1st: confuses division with // match
# 2nd: semicolon statement separator not honored
# 3rd: comment not honored
$timely/$divided/$divided_again/$and_again;  # // match
       /regex/;                              # confused with regex match

Please also note that github highlighter is not confused

Outcome

kakoune_perl

Expectations

see github highlighting

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant