File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -425,7 +425,7 @@ export const scalaTmLanguage: TmLanguage = {
425425 'using' : {
426426 patterns : [
427427 {
428- match : `(?<=\\()\\s*(using)\\s+(?=[\\w\\d\\(\\.\\(\\{'"$]) ` ,
428+ match : `(?<=\\()\\s*(using)\\s` ,
429429 captures : {
430430 '1' : {
431431 name : 'keyword.declaration.scala'
Original file line number Diff line number Diff line change 11// SYNTAX TEST "source.scala"
22
3- case ' { Array [T ]()(using $ct) =>
3+ case ' { Array [T ]()(using $ct) } =>
4+ // ^^^^^ keyword.declaration.scala
5+
6+ case ' { Array [T ]()(using ($ct : ClassTag [T ])) } =>
47// ^^^^^ 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