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 @@ -568,7 +568,7 @@ export const scalaTmLanguage: TmLanguage = {
568
568
}
569
569
} ,
570
570
{
571
- match : '\\b(?:(case|open)\\s+)?(class|object)\\s+([^\\s\\{\\(\\[]+)' ,
571
+ match : '\\b(?:(case|open)\\s+)?(class|object)\\s+([^\\s\\{\\(\\[; ]+)' ,
572
572
captures : {
573
573
'1' : {
574
574
name : 'keyword.declaration.scala'
@@ -935,7 +935,7 @@ export const scalaTmLanguage: TmLanguage = {
935
935
inheritance : {
936
936
patterns : [
937
937
{
938
- match : '(extends|with|derives)\\s+([^\\s\\(\\{\\[\\]]+|(?=\\([^\\)]+=>))' ,
938
+ match : '(extends|with|derives)\\s+([^\\s\\(\\{\\[\\]\\)\\}; ]+|(?=\\([^\\)]+=>))' ,
939
939
captures : {
940
940
'1' : {
941
941
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