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 highlight is broken #78708

Closed
Sco768 opened this issue Aug 8, 2019 · 1 comment
Closed

Perl syntax highlight is broken #78708

Sco768 opened this issue Aug 8, 2019 · 1 comment
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) grammar Syntax highlighting grammar

Comments

@Sco768
Copy link

Sco768 commented Aug 8, 2019

Issue Type: Bug

Perl syntax highlight breaks with a simple line involving two pairs of square brackets:

    use strict;
    my %FORM = (logins => "Aaaa, Bbbb Cccc");
    my $good_highlight = "a string";
    # everything after this line is highlighted the wrong way
    my $logins_from_form = [split /[,\s]+/, $FORM{logins}];
    my $bad_highlight = "a string";
  1. Create a new .pl file or choose Perl language manually, edit the file
  2. Put the code above
  3. Notice that the colors in the last line are different from the third one. In a real life situation that would make a few screens of mostly brown (or whatever "my" is in the last line) lines until a similar line would fix the highlight back.

VS Code version: Code 1.36.1 (2213894, 2019-07-08T22:55:08.091Z)
OS version: Linux x64 4.15.0-55-generic

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz (4 x 2800)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: disabled_software
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: unavailable_off
viz_display_compositor: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) 1, 1, 1
Memory (System) 15.50GB (3.67GB free)
Process Argv --unity-launch
Screen Reader no
VM 0%
Extensions (15)
Extension Author (truncated) Version
Bookmarks ale 10.4.4
perl-html-template bia 1.1.7
vscode-perl cfg 1.18.0
copy-path Eti 0.0.1
copy-filename jac 2.1.4
mysql-syntax jak 1.3.1
vscode-edit-csv jan 0.1.2
python ms- 2019.8.29288
copy-file-name nem 1.2.0
java red 0.47.0
trailing-spaces sha 0.3.1
vscode-java-debug vsc 0.20.0
vscode-java-dependency vsc 0.5.1
vscode-java-pack vsc 0.7.1
vscode-java-test vsc 0.18.2
@alexr00
Copy link
Member

alexr00 commented Aug 13, 2019

Duplicate of textmate/perl.tmbundle#27

@alexr00 alexr00 marked this as a duplicate of textmate/perl.tmbundle#27 Aug 13, 2019
@alexr00 alexr00 closed this as completed Aug 13, 2019
@alexr00 alexr00 added *duplicate Issue identified as a duplicate of another issue(s) grammar Syntax highlighting grammar labels Aug 13, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Sep 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) grammar Syntax highlighting grammar
Projects
None yet
Development

No branches or pull requests

2 participants