File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 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 = {
568568 }
569569 } ,
570570 {
571- match : '\\b(?:(case|open)\\s+)?(class|object)\\s+([^\\s\\{\\(\\[]+)' ,
571+ match : '\\b(?:(case|open)\\s+)?(class|object)\\s+([^\\s\\{\\(\\[; ]+)' ,
572572 captures : {
573573 '1' : {
574574 name : 'keyword.declaration.scala'
@@ -935,7 +935,7 @@ export const scalaTmLanguage: TmLanguage = {
935935 inheritance : {
936936 patterns : [
937937 {
938- match : '(extends|with|derives)\\s+([^\\s\\(\\{\\[\\]]+|(?=\\([^\\)]+=>))' ,
938+ match : '(extends|with|derives)\\s+([^\\s\\(\\{\\[\\]\\)\\}; ]+|(?=\\([^\\)]+=>))' ,
939939 captures : {
940940 '1' : {
941941 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