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 Highlighting breaks with //= on any new line #29

Open
aeschli opened this issue Jan 26, 2018 · 3 comments
Open

Perl Syntax Highlighting breaks with //= on any new line #29

aeschli opened this issue Jan 26, 2018 · 3 comments

Comments

@aeschli
Copy link
Contributor

aeschli commented Jan 26, 2018

From @TalhaObaid on January 23, 2018 3:30

  • VSCode Version: Code 1.19.2 (490ef761b76b3f3b3832eff7a588aac891e5fe80, 2018-01-10T15:49:04.682Z)
  • OS Version: Darwin x64 16.7.0
  • Extensions:
Extension Author (truncated) Version
vscode-docker Pet 0.0.23
perltidy sfo 1.2.1

Steps to Reproduce:

  1. Create/open a file with Perl code in editor, having .pm/.pl extension.
  2. Write //= (); on a new line in the middle of the code.
  3. The rest of the code below will turn leaving the identifiers only

Reproduces without extensions: Yes

Copied from original issue: microsoft/vscode#42008

@klyubavsky
Copy link

klyubavsky commented Oct 30, 2018

To bring more light on this issue
It will be broken for every slash / on the new line with leading spaces
That is, all this options will break highlighting:

  • /
  • /foo
  • <\s>/foo
  • <\t>/foo

@chrstphrchvz
Copy link

@TalhaObaid Does using m// instead of // workaround this issue?

@simcop2387
Copy link

No, using m// would not address this issue as //= is a different operator. // is the defined-or operator in perl, distinct from /foo/ or m//.

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

No branches or pull requests

4 participants