File tree 3 files changed +25
-2
lines changed
3 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -485,7 +485,7 @@ export const scalaTmLanguage: TmLanguage = {
485
485
'using' : {
486
486
patterns : [
487
487
{
488
- match : `(?<=\\()\\s*(using)\\s+(?=[\\w\\d\\(\\.\\(\\{'"]) ` ,
488
+ match : `(?<=\\()\\s*(using)\\s` ,
489
489
captures : {
490
490
'1' : {
491
491
name : 'keyword.declaration.scala'
Original file line number Diff line number Diff line change
1
+ // SYNTAX TEST "source.scala"
2
+
3
+ case ' { Array [T ]()(using $ct) } =>
4
+ // ^^^^^ keyword.declaration.scala
5
+
6
+ case ' { Array [T ]()(using ($ct : ClassTag [T ])) } =>
7
+ // ^^^^^ keyword.declaration.scala
Original file line number Diff line number Diff line change @@ -41,4 +41,20 @@ given [T](using Ord[T]) as Ord[List[T]]
41
41
42
42
f(using " " )
43
43
// ^^^^^ keyword.declaration.scala
44
- // ^^ string.quoted.double.scala
44
+ // ^^ string.quoted.double.scala
45
+
46
+ val using = ...
47
+ // ^^^^^ - keyword.declaration.scala
48
+ val using : X = ...
49
+ // ^^^^^ - keyword.declaration.scala
50
+ def using () = ...
51
+ // ^^^^^ - keyword.declaration.scala
52
+
53
+ using(foo)
54
+ // ^^^^^ - keyword.declaration.scala
55
+ bar(using(foo))
56
+ // ^^^^^ - keyword.declaration.scala
57
+ bar(using.apply(foo))
58
+ // ^^^^^ - keyword.declaration.scala
59
+ using.apply(foo)
60
+ // ^^^^^ - keyword.declaration.scala
You can’t perform that action at this time.
0 commit comments