Skip to content

Tokenization incorrect when using underscore in function name and @_ #40

@alexr00

Description

@alexr00

From @gilsanx in microsoft/vscode#83321

  • VSCode Version: 1.39.2
  • OS Version: Fedora 20

Steps to Reproduce:

  1. Have a perl function that has an underscore in its name. Example: s_expand()
  2. Pass @_ as parameter. s_expand(@_)
  3. The syntax is broken until another character breaks the highlight, for instance, another underscore.
sub myExample()
{
  s_expand(@_);
}

sub fixHighlight()
{
  #perl comment_
}

image

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