-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#88: Fixed regression in handling of CR/LF combinations within string…
…s. Added test case to prevent such a regression in the future.
- Loading branch information
1 parent
4df9dec
commit 9d2734b
Showing
3 changed files
with
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# This sample tests that the tokenizer properly handles | ||
# line feeds. | ||
|
||
""" | ||
This is a multi-line comment \ | ||
with escape characters. | ||
""" | ||
|
||
# This is a raw string with an escaped EOL. | ||
foo = r"\ | ||
" | ||
|
||
# The final token should be on line 14 | ||
bar = foo |
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