Type: Bug
Perl has a bunch of punctuation variables including $) and $(. You can find documentation on all of these variables in perlvar.
Bracket pair colorization does not seem to handle these well, resulting in it turning brackets red when there is actually a matching close bracket.
To reproduce:
- Turn on bracket pair colorization
- Create new perl file (test.pl, for example)
- Write the following code:
- Run the code in perl - it runs with no syntax errors (though does nothing).
- VSCode reports the parentheses as not matching.
Here is another, more complex, example - in this case, VSCode colors all the curly brackets red instead of the parentheses:
#!/usr/bin/perl
sub test
{
return;
}
test(
sub {
my $x = sub { scalar(getpwuid($>)), $) };
}
);
VS Code version: Code 1.73.1 (6261075, 2022-11-09T04:27:29.066Z)
OS version: Windows_NT x64 10.0.19043
Modes:
Sandboxed: No
Remote OS version: Linux x64 4.18.0-348.12.2.el8_5.x86_64
Connection to 'ssh-remote+vm-mreisner' could not be established
System Info
| Item |
Value |
| CPUs |
Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz (8 x 1896) |
| GPU Status |
2d_canvas: enabled canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_renderer: enabled_on video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: disabled_off |
| Load (avg) |
undefined |
| Memory (System) |
15.88GB (0.75GB free) |
| Process Argv |
--crash-reporter-id 11265485-e23d-4f5a-b75b-ed9aa0dd293e |
| Screen Reader |
no |
| VM |
33% |
| Item |
Value |
| Remote |
SSH: vm-mreisner |
| OS |
Linux x64 4.18.0-348.12.2.el8_5.x86_64 |
| CPUs |
Intel(R) Xeon(R) Platinum 8268 CPU @ 2.90GHz (2 x 2893) |
| Memory (System) |
1.93GB (0.64GB free) |
| VM |
100% |
Connection to 'ssh-remote+vm-mreisner' could not be established
Extensions (36)
| Extension |
Author (truncated) |
Version |
| RPMSpec |
1do |
0.1.0 |
| better-cpp-syntax |
jef |
1.16.3 |
| jupyter-keymap |
ms- |
1.0.0 |
| remote-containers |
ms- |
0.262.3 |
| remote-ssh |
ms- |
0.92.0 |
| remote-ssh-edit |
ms- |
0.84.0 |
| remote-wsl |
ms- |
0.72.0 |
| vscode-remote-extensionpack |
ms- |
0.23.0 |
| remote-explorer |
ms- |
0.0.2 |
| vim |
vsc |
1.24.3 |
| blamer-vs |
bea |
0.5.2 |
| doxdocgen |
csc |
1.4.0 |
| xml |
Dot |
2.5.1 |
| pls |
Fra |
0.0.16 |
| todo-tree |
Gru |
0.0.220 |
| haskell |
has |
2.2.2 |
| plantuml |
jeb |
2.17.4 |
| better-cpp-syntax |
jef |
1.16.3 |
| svn-scm |
joh |
2.15.5 |
| cmake-language-support-vscode |
jos |
0.0.7 |
| language-julia |
jul |
1.38.2 |
| language-haskell |
jus |
3.6.0 |
| vscode-dotnet-runtime |
ms- |
1.6.0 |
| isort |
ms- |
2022.8.0 |
| python |
ms- |
2022.18.2 |
| vscode-pylance |
ms- |
2022.11.40 |
| jupyter |
ms- |
2022.9.1303220346 |
| jupyter-keymap |
ms- |
1.0.0 |
| jupyter-renderers |
ms- |
1.0.12 |
| vscode-jupyter-cell-tags |
ms- |
0.1.6 |
| vscode-jupyter-slideshow |
ms- |
0.1.5 |
| cmake-tools |
ms- |
1.12.27 |
| cpptools |
ms- |
1.12.4 |
| cpptools-extension-pack |
ms- |
1.3.0 |
| hexeditor |
ms- |
1.9.9 |
| cmake |
twx |
0.0.17 |
(2 theme extensions excluded)
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vstes627:30244334
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
azure-dev_surveyone:30548225
vsccc:30610678
pyindex848:30577860
nodejswelcome1:30587005
282f8724:30602487
gswce1:30612156
3d0df643:30613357
dbltrim-noruby:30604474
89544117:30613380
cc2-nonfim-prod:30622702
Type: Bug
Perl has a bunch of punctuation variables including
$)and$(. You can find documentation on all of these variables in perlvar.Bracket pair colorization does not seem to handle these well, resulting in it turning brackets red when there is actually a matching close bracket.
To reproduce:
Here is another, more complex, example - in this case, VSCode colors all the curly brackets red instead of the parentheses:
VS Code version: Code 1.73.1 (6261075, 2022-11-09T04:27:29.066Z)
OS version: Windows_NT x64 10.0.19043
Modes:
Sandboxed: No
Remote OS version: Linux x64 4.18.0-348.12.2.el8_5.x86_64
Connection to 'ssh-remote+vm-mreisner' could not be established
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Connection to 'ssh-remote+vm-mreisner' could not be established
Extensions (36)
(2 theme extensions excluded)
A/B Experiments