File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,9 @@ export const scalaTmLanguage: TmLanguage = {
150
150
{
151
151
include : '#inheritance'
152
152
} ,
153
+ {
154
+ include : '#extension'
155
+ } ,
153
156
{
154
157
include : '#imports'
155
158
} ,
@@ -859,6 +862,19 @@ export const scalaTmLanguage: TmLanguage = {
859
862
}
860
863
]
861
864
} ,
865
+ extension : {
866
+ patterns : [
867
+ {
868
+ match : `(extension)\\s+(?=[\\[\\(])` ,
869
+ captures : {
870
+ '1' : {
871
+ name : 'keyword.declaration.scala'
872
+ } ,
873
+
874
+ }
875
+ }
876
+ ]
877
+ } ,
862
878
'parameter-list' : {
863
879
patterns : [
864
880
{
Original file line number Diff line number Diff line change
1
+ // SYNTAX TEST "source.scala"
2
+
3
+ extension (x : T ) def combine (y : T ): T
4
+ // ^^^^^^^^^ keyword.declaration.scala
5
+ // ^ variable.parameter.scala
6
+ // ^ meta.colon.scala
7
+ // ^ entity.name.class
8
+ // ^^^ keyword.declaration.scala
9
+ // ^^^^^^^ entity.name.function.declaration
10
+
11
+
12
+ extension [T ](x : T ) def combine (y : T ): T
13
+ // ^^^^^^^^^ keyword.declaration.scala
14
+ // ^ entity.name.class
15
+ // ^ variable.parameter.scala
16
+ // ^ meta.colon.scala
17
+ // ^ entity.name.class
18
+ // ^^^ keyword.declaration.scala
19
+ // ^^^^^^^ entity.name.function.declaration
You can’t perform that action at this time.
0 commit comments