Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix character escaping in Perl lexer (#1549)
In single- and double-quoted strings, the Perl lexer currently tokenises `\` as an error if it is not followed by a character in part of a recognised escape sequence. This is a bug. Perl accepts the use of `\` in single- and double-quoted strings even if it is not part of a valid escape sequence. This commit permits the use of `\` in single-quoted and double-quoted strings as well as increasing the range of escape sequences that are recognised in double-quoted strings.
- Loading branch information
Showing
2 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters