Skip to content

Commit f6bbf35

Browse files
authored
Merge pull request #167 from ckipp01/tests
test: just a few more highlight tests
2 parents 4d65adb + 65316ed commit f6bbf35

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

test/highlight/basics.scala

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ object Hello {
1515
// ^keyword.operator
1616
// ^type
1717

18+
var mutation = "mutant"
19+
// ^keyword
20+
// ^variable
21+
1822
trait Test {
1923
// ^ keyword
2024
// ^ type
@@ -24,6 +28,13 @@ object Hello {
2428
// ^type
2529
// ^method
2630
// ^parameter
31+
32+
val anonFun: Int => Int = (a: Int) => a
33+
// ^variable
34+
// ^type
35+
// ^operator
36+
// ^type
37+
// ^parameter
2738
}
2839

2940
protected abstract class Bla(test: String)

test/highlight/scala3.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,14 @@ class C:
5858
foooo: Int
5959
// ^type
6060

61+
enum Simple:
62+
//^keyword
63+
// ^type
64+
case A, B, C
65+
// ^type
6166
enum Test(a: Int) derives Codec:
6267
// ^keyword
68+
// ^type
6369
// ^type
6470
// ^keyword
6571
// ^type

0 commit comments

Comments
 (0)