-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for r-strings, closes #257
- Loading branch information
Showing
8 changed files
with
50 additions
and
1 deletion.
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
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
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,17 @@ | ||
var x = r'x' | ||
|
||
var x2 = r'x "' | ||
var x3 = r'x " " \'' | ||
var x4 = r"x '" | ||
var x5 = r"x ' ' \"" | ||
|
||
var x6 = r'x \'' | ||
var x7 = r"x \"" | ||
var x8 = r'x \' "' | ||
|
||
var x9 = r'''x''' | ||
var x10 = r'''x "''' | ||
|
||
var x11 = r"""abc " def ' ghi""" | ||
|
||
var x12 = r'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' |
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,17 @@ | ||
var x = r"x" | ||
|
||
var x2 = r'x "' | ||
var x3 = r'x " " \'' | ||
var x4 = r"x '" | ||
var x5 = r"x ' ' \"" | ||
|
||
var x6 = r"x '" | ||
var x7 = r'x "' | ||
var x8 = r"x ' \"" | ||
|
||
var x9 = r"x" | ||
var x10 = r'x "' | ||
|
||
var x11 = r"""abc " def ' ghi""" | ||
|
||
var x12 = r"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
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,5 @@ | ||
func foo(): | ||
print(r'" \' \ \\') | ||
print(r"\" ' \ \\") | ||
print(r"""aaa""") | ||
print(r'''bbb''') |