Skip to content

Commit 54c3fde

Browse files
committed
Hightlight differences
1 parent 0937601 commit 54c3fde

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

test/highlight/basics.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ object Hello {
3030
// ^keyword.function
3131
// ^keyword
3232
// ^type
33-
// ^method
33+
// ^function
3434
// ^parameter
3535

3636
val anonFun: Int => Int = (a: Int) => a
@@ -50,7 +50,7 @@ object Hello {
5050

5151
type Hello = "25"
5252
// ^keyword
53-
// ^type.definition
53+
// ^type
5454
// ^string
5555

5656
class A {
@@ -68,21 +68,21 @@ object Hello {
6868

6969
type A = B[({ type f[x] = M[S, x] })#f]
7070
// ^keyword
71-
// ^type.definition
71+
// ^type
7272

7373
val hello = c"some $mutation ${1}"
7474
// ^function.call
7575
// ^punctuation.special
7676
// ^variable
7777
// ^number
7878
def meth = ???
79-
// ^method
79+
// ^function
8080
val hello2 = c"some $meth"
81-
// ^method
81+
// ^function
8282
val hello3 = s"$$$meth$hello2%"
8383
// ^string
8484
// ^punctuation.special
85-
// ^method
85+
// ^function
8686
// ^punctuation.special
8787
// ^variable
8888
// ^string

test/highlight/comments.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/*
77
* Beep boop
88
*/
9-
// <- comment
9+
// <- spell
1010

1111
// Single line comment
12-
// <- comment
12+
// <- spell

test/highlight/scala3.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class C:
55

66
def test(aaaa: A): Int =
77
//^keyword.function
8-
// ^method
8+
// ^function
99
// no curly braces, but this is still in test method
1010
val bbb = 1
1111
//^keyword
@@ -21,12 +21,12 @@ object O1:
2121

2222
def test: Unit = ()
2323
//^keyword.function
24-
// ^method
24+
// ^function
2525

2626
object O2:
2727
type Elem[A] = A match
2828
//^keyword
29-
// ^type.definition
29+
// ^type
3030
case String => Char
3131
//^keyword
3232
// ^type ^type
@@ -38,7 +38,7 @@ class C:
3838
// ^keyword
3939
// ^type
4040
fooooo.map: x =>
41-
// ^method.call
41+
// ^property
4242
x + 1
4343

4444
xs.map:
@@ -96,7 +96,7 @@ opaque type Blow <: Int = 25
9696
// ^type.qualifier
9797
// ^keyword
9898
// ^type
99-
// ^type.definition
99+
// ^type
100100

101101
inline given Test = new Test {
102102
// ^ storageclass
@@ -117,7 +117,7 @@ object A:
117117
// ^type
118118

119119
::(123)
120-
//^function.call
120+
//^operator
121121
// ^number
122122

123123
object bla:

0 commit comments

Comments
 (0)