forked from google/starlark-go
-
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.
syntax: fix scanString bug affecting REPL (google#266)
Prior to this change, the REPL incorrectly scanned regular and raw string literals containing newlines because scanString falsely assumed that only triple-quoted strings can span lines. ``` >>> 'a\ ... b' <stdin>:1:2: string literal has invalid quotes >>> r'a ... b' <stdin>:1:2: string literal has invalid quotes ``` Now it does the right thing: ``` >>> 'a\ ... b' "ab" >>> r'a\ ... b' "a\\\nb" ```
- Loading branch information
Showing
2 changed files
with
20 additions
and
12 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