Skip to content

Commit 40511bd

Browse files
authored
Merge pull request #142 from eed3si9n/wip/highlights
Add tests for optional braces highlights
2 parents 63addda + 00cfe78 commit 40511bd

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

test/highlight/scala3.scala

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
// Optional braces syntax
2+
class C:
3+
// ^keyword
4+
// ^type.definition
5+
6+
def test(aaaa: A): Int =
7+
//^keyword.function
8+
// ^method
9+
// no curly braces, but this is still in test method
10+
val bbb = 1
11+
//^keyword
12+
// ^variable
13+
val ccc = 2
14+
//^keyword
15+
// ^variable
16+
1
17+
18+
object O1:
19+
//^keyword
20+
// ^type.definition
21+
22+
def test: Unit = ()
23+
//^keyword.function
24+
// ^method
25+
126
// SIP-44
227
class C:
328
// ^keyword

0 commit comments

Comments
 (0)