-
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.
Stop at comma only if one could be expected
We now have the following handling of stop symbols in skip: - `)`, `]`, `}`: stop if there is a corresponding opening parenthesis - `,` : stop if we are in a `commaSeparated` production - undent : stop if indent width matches a previously seen indent width - `;`, nl : stop unconditionally, the parser will sync after the current statement
- Loading branch information
Showing
4 changed files
with
27 additions
and
13 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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
class A[T] | ||
object o { | ||
// Testing compiler crash, this test should be modified when named type argument are completely implemented | ||
val x: A[T=Int, T=Int] = ??? // error: ']' expected, but '=' found // error | ||
val x: A[T=Int, T=Int] = ??? // error: ']' expected, but '=' found | ||
} |
extraneous.
assert(!myCommasExpected, "scanning region with commas is not re-entrant")
I guess imports are an undelimited or delimiterless comma-separated thing.