Skip to content

Conversation

@odersky
Copy link
Contributor

@odersky odersky commented May 1, 2021

  • Remove some duplication in parser routines.
  • Avoid some follow-on errors
  • Treat end markers as soft keywords recognized by Scanner

Fixes #12150 by emitting a better error message

odersky added 7 commits May 1, 2021 11:50
Detect end markers in Scanner
and fix repltests
 - Only recognize it under indentSyntax
 - But include it as a possible statement start even under Scala 2.
   END might be detected before it can be converted back to IDENTIFIER.
   So it needs to be included in canStartStatement2, just like IDENTIFIER.
Co-authored-by: Nicolas Stucki <nicolas.stucki@gmail.com>
@odersky odersky merged commit eff4cb1 into scala:master May 5, 2021
@odersky odersky deleted the fix-12150 branch May 5, 2021 07:33
@Kordyjan Kordyjan added this to the 3.0.1 milestone Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

End on empty method returning Unit

3 participants