Skip to content

perl syntax highlight problem with $_tmp (_ prefixed variables) #533

@gullevek

Description

@gullevek

Checklist

  • perl (jeff-hykin.better-perl-syntax)

The code with a problem is:

$_
$_foo
$__foo
$foo
$a_foo

It looks like:

Theme: Monokai

Variables with _ prefix do not highlight
Screen Shot 2021-01-26 at 15 24 00

Variable scrop with only _
Screen Shot 2021-01-26 at 15 27 34

Correct variable scope with all other variable names
Screen Shot 2021-01-26 at 15 24 28

Wrong scope for _ with letters
Screen Shot 2021-01-26 at 15 24 34

It should look like:

All variables prefix with _ and some character following should be highlighted as variables.
Currently they are seen als perl source only

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions