Skip to content

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

@chrstphrchvz

Description

@chrstphrchvz

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($|::)/;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions