You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given the following scala code,
this will highlight the with keywords as out of place:
classc()
extends a()
// some commentwith foo with bar {
}
while the following works fine:
classc()
extends a()
with foo with bar {
}
Tested on build 4143 on the stable channel
The text was updated successfully, but these errors were encountered:
fhunstock-semron
changed the title
[Scala] Comment
[Scala] "with" keywords highlighted as out of place when comment between them and extends
May 26, 2023
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: