File tree 2 files changed +17
-2
lines changed 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -480,7 +480,7 @@ export const scalaTmLanguage: TmLanguage = {
480
480
}
481
481
} ,
482
482
{
483
- match : '\\b(?:(case)\\s+)?(class|object)\\s+([^\\s\\{\\(\\[]+)' ,
483
+ match : '\\b(?:(case)\\s+)?(class|object)\\s+([^\\s\\{\\(\\[; ]+)' ,
484
484
captures : {
485
485
'1' : {
486
486
name : 'keyword.declaration.scala'
@@ -847,7 +847,7 @@ export const scalaTmLanguage: TmLanguage = {
847
847
inheritance : {
848
848
patterns : [
849
849
{
850
- match : '(extends|with|derives)\\s+([^\\s\\{\\[\\]]+)' ,
850
+ match : '(extends|with|derives)\\s+([^\\s\\{\\[\\]\\)\\}; ]+)' ,
851
851
captures : {
852
852
'1' : {
853
853
name : 'keyword.declaration.scala'
Original file line number Diff line number Diff line change
1
+ // SYNTAX TEST "source.scala"
2
+
3
+
4
+ class A extends B with NoStackTrace )
5
+ // ^^^^ keyword.declaration.scala
6
+ // ^^^^^^^^^^^^ entity.other.inherited-class.scala
7
+ // ^ meta.bracket.scala
8
+ class A extends B with NoStackTrace }
9
+ // ^^^^ keyword.declaration.scala
10
+ // ^^^^^^^^^^^^ entity.other.inherited-class.scala
11
+ // ^ punctuation.section.block.end.scala
12
+ class A extends B with NoStackTrace ]
13
+ // ^^^^ keyword.declaration.scala
14
+ // ^^^^^^^^^^^^ entity.other.inherited-class.scala
15
+ // ^ meta.bracket.scala
You can’t perform that action at this time.
0 commit comments