-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test cases for freestanding
\
followed by escaped reference symbol
Reclass's reference parsing only requires escaping backslashes that should be literals when they precede a reference opening or closing symbol. Other backslashes don't need to be escaped. The parser will try to parse backslashes as single characters first, and will only interpret them as escape characters when they precede a reference opening or closing symbol. We add three test cases which illustrate this behavior: `\\\${foo}` which is parsed as a single `\` followed by a double-escaped reference, `\\\\${foo}` which is parsed as two `\` followed by a double-escaped reference, and `${foo\\\}` which is parsed as a reference to `foo\\`.
- Loading branch information
Showing
1 changed file
with
66 additions
and
0 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