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

Bad syntax highlighting for Perl code #155209

Closed
oscaretu opened this issue Jul 14, 2022 · 2 comments
Closed

Bad syntax highlighting for Perl code #155209

oscaretu opened this issue Jul 14, 2022 · 2 comments
Assignees
Labels
grammar Syntax highlighting grammar upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@oscaretu
Copy link

oscaretu commented Jul 14, 2022

Create a file called test.pl, with content:

sub leeFicheroAuxiliares 
{
    my $linea;

    ($id, $dato) = split /\|/, $linea; # the problem is in the backslash + pipe
    $hash{$id} = $dato;
} 

The syntax highlight is wrong, due to the backslash followed by a pipe:

imagen

If you remove them an put an "a", the syntax highlight is OK:

sub leeFicheroAuxiliares 
{
    my $linea;

    ($id, $dato) = split /a/, $linea; # I removed the backslash + pipe and put an "a"
    $hash{$id} = $dato;
}

imagen

Data about VSCode:

Version: 1.69.0 (system setup)
Commit: 92d25e35d9bf1a6b16f7d0758f25d48ace11e5b9
Date: 2022-07-07T05:28:36.503Z
Electron: 18.3.5
Chromium: 100.0.4896.160
Node.js: 16.13.2
V8: 10.0.139.17-electron.0
OS: Windows_NT x64 10.0.19044
@mjbvz mjbvz assigned alexr00 and unassigned mjbvz Jul 14, 2022
@RedCMD
Copy link
Contributor

RedCMD commented Jul 14, 2022

Duplicate of #154706
Forwarded to textmate/perl.tmbundle#52

@alexr00
Copy link
Member

alexr00 commented Jul 18, 2022

Also a duplicate of upstream issue textmate/perl.tmbundle#28

@alexr00 alexr00 closed this as completed Jul 18, 2022
@alexr00 alexr00 added upstream Issue identified as 'upstream' component related (exists outside of VS Code) grammar Syntax highlighting grammar labels Jul 18, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Sep 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
grammar Syntax highlighting grammar upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

4 participants