This repository has been archived by the owner on Sep 8, 2023. It is now read-only.
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 (rouge-ruby#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