File tree Expand file tree Collapse file tree 3 files changed +25
-2
lines changed Expand file tree Collapse file tree 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 = {
485485 'using' : {
486486 patterns : [
487487 {
488- match : `(?<=\\()\\s*(using)\\s+(?=[\\w\\d\\(\\.\\(\\{'"]) ` ,
488+ match : `(?<=\\()\\s*(using)\\s` ,
489489 captures : {
490490 '1' : {
491491 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]]
4141
4242 f(using " " )
4343// ^^^^^ 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