Perl syntax highlighting issue - s{foo}{bar} if $baz; #131322
Labels
grammar
Syntax highlighting grammar
upstream-issue-linked
This is an upstream issue that has been reported upstream
Issue Type: Bug
Perl's regex operators can use any pair of matching characters as delimiters (see https://perldoc.perl.org/perlop#Regexp-Quote-Like-Operators). When using a bracketing character as the delimiter, e.g.
({[
, then the matching closing bracket can be used to close the operator, e.g.m<foo>
ors{foo}{bar}
. The bug only occurs when using the substitution operator (s///
), and only when using bracketing delimiters, and only with a statement modifier (a trailingif
,while
, etc).VS Code version: Code 1.56.2 (Universal) (054a929, 2021-05-12T17:44:30.902Z)
OS version: Darwin x64 20.5.0
System Info
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Extensions (31)
(1 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: