forked from scala/scala3
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There was a missing set of parentheses in parser which caused a lookahead from INTERPOLATIONID, which should be illegal, since the lookahead then migth set the next TokenData which is subsequently overwritten by reset. We now demand that lookahead cannot be called if the current token is a INTERPOLATIONID. There were two many variants `lookahead` in the Scanner, which only differered in camelCase or not. Rename one to`peekAhead` to make the code clearer.
- Loading branch information
Showing
3 changed files
with
19 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
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,4 @@ | ||
|
||
object Main { s"Hello $Main.toStr!" } | ||
|
||
object Alt { s"Hello ${Alt}.toStr!" } |