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 @@ -480,7 +480,7 @@ export const scalaTmLanguage: TmLanguage = {
480480 }
481481 } ,
482482 {
483- match : '\\b(?:(case)\\s+)?(class|object)\\s+([^\\s\\{\\(\\[]+)' ,
483+ match : '\\b(?:(case)\\s+)?(class|object)\\s+([^\\s\\{\\(\\[; ]+)' ,
484484 captures : {
485485 '1' : {
486486 name : 'keyword.declaration.scala'
@@ -847,7 +847,7 @@ export const scalaTmLanguage: TmLanguage = {
847847 inheritance : {
848848 patterns : [
849849 {
850- match : '(extends|with|derives)\\s+([^\\s\\{\\[\\]]+)' ,
850+ match : '(extends|with|derives)\\s+([^\\s\\{\\[\\]\\)\\}; ]+)' ,
851851 captures : {
852852 '1' : {
853853 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