Skip to content

Commit d18f6db

Browse files
committed
Update Perl stringBody
Backslash escapes are valid escapes in a single quote string body in Perl.
1 parent a5e379c commit d18f6db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/basic-languages/perl/perl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ export const language = <languages.IMonarchLanguage>{
534534

535535
stringBody: [
536536
[/'/, 'string', '@popall'],
537-
[/\\'/, 'string.escape'],
537+
[/\\'|\\\\/, 'string.escape'],
538538
[/./, 'string']
539539
],
540540

0 commit comments

Comments
 (0)