-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle backslash escaping in template literals (#366)
* include failing render test for backspace literal * Add escaping for all '\' characters in template strings
- Loading branch information
1 parent
b57fd68
commit 271db5d
Showing
4 changed files
with
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
some `\annotation\` for something \unlikely\ like this | ||
|
||
```pony | ||
if \likely\ cond then | ||
foo | ||
end | ||
while \unlikely\ cond then | ||
bar | ||
end | ||
repeat | ||
baz | ||
until \likely\ cond end | ||
match obj | ||
| \likely\ expr => foo | ||
| \unlikely\ let capt: T => bar | ||
end | ||
``` |
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