-
Notifications
You must be signed in to change notification settings - Fork 588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Scala] "with" keywords highlighted as out of place when comment between them and extends #3778
Comments
This may not actually be solvable. The problem here is inferring when the class definition ends in general (especially when you don't have an open curly brace) is based on a complex series of rules, most notably including a double newline. This is the same set of rules that applies to other type definitions. The issue in your example is there is a double newline, it's just hidden by the comment. Scala reasonably considers the comment line to be "not blank", but it's harder for Sublime to make the same judgement. I would definitely like to fix this, but I'm somewhat skeptical that it's in the cards. |
What happened?
Given the following scala code,
this will highlight the
with
keywords as out of place:while the following works fine:
Tested on build 4143 on the stable channel
The text was updated successfully, but these errors were encountered: