1- // SYNTAX TEST "source.scala"
1+ // SYNTAX TEST "source.scala"
22
33object ExampleIdentifiers {
44 val x = 3
5- // ^ variable.other .declaration.scala
6- val Object = 3
5+ // ^ variable.stable .declaration.scala
6+ val Object = 3
77 val maxIndex = 3
8- // ^^^^^^^^ variable.other .declaration.scala
9- val p2p = 3
10- // ^^^ variable.other .declaration.scala
8+ // ^^^^^^^^ variable.stable .declaration.scala
9+ val p2p = 3
10+ // ^^^ variable.stable .declaration.scala
1111 val empty_? = 3
12- // ^^^^^^^ variable.other .declaration.scala
13- val + = 3
14- // ^ variable.other .declaration.scala
15- val `yield` = 3
16- // ^^^^^^^ variable.other .declaration.scala
17- val αρετη = 3
18- val _y = 3
19- // ^^ variable.other .declaration.scala
12+ // ^^^^^^^ variable.stable .declaration.scala
13+ val + = 3
14+ // ^ variable.stable .declaration.scala
15+ val `yield` = 3
16+ // ^^^^^^^ variable.stable .declaration.scala
17+ val αρετη = 3
18+ val _y = 3
19+ // ^^ variable.stable .declaration.scala
2020 val dot_product_* = 3
21- // ^^^^^^^^^^^^^ variable.other .declaration.scala
22- val __system = 3
23- // ^^^^^^^^ variable.other .declaration.scala
21+ // ^^^^^^^^^^^^^ variable.stable .declaration.scala
22+ val __system = 3
23+ // ^^^^^^^^ variable.stable .declaration.scala
2424 val _MAX_LEN_ = 3
25- // ^^^^^^^^^ variable.other .declaration.scala
25+ // ^^^^^^^^^ variable.stable .declaration.scala
2626}
2727
2828object IntegerLiterals {
2929 (0 , 21 , 0xFFFFFFFF , - 42L )
30- // ^ constant.numeric.scala
30+ // ^ constant.numeric.scala
3131// ^^ constant.numeric.scala
3232// ^^^^^^^^^^ constant.numeric.scala
3333// ^ keyword.operator.arithmetic.scala
@@ -37,9 +37,9 @@ object IntegerLiterals {
3737object FloatingPointLiterals {
3838 ( 0.0 , 1e30f , 3.14159f , 1.0e-100 , .1 )
3939// ^^^ constant.numeric.scala
40- // ^^^^^^^^ constant.numeric.scala
41- // ^^^^^^^^ constant.numeric.scala
42- // ^^ constant.numeric.scala
40+ // ^^^^^^^^ constant.numeric.scala
41+ // ^^^^^^^^ constant.numeric.scala
42+ // ^^ constant.numeric.scala
4343}
4444
4545object Boolean {
@@ -54,9 +54,9 @@ object CharacterLiterals {
5454// ^^^ constant.character.literal.scala
5555// ^ punctuation.definition.character.end.scala
5656// ^^^^^^^^ constant.character.literal.scala
57- // ^^^^^^ constant.character.escape.scala
57+ // ^^^^^^ constant.character.escape.scala
5858// ^^ constant.character.escape.scala
59- // ^^ constant.character.escape.scala
59+ // ^^ constant.character.escape.scala
6060}
6161
6262object StringLiterals {
@@ -65,14 +65,14 @@ object StringLiterals {
6565// ^^^^^^^^^^^^^^^^ string.quoted.double.scala
6666// ^^ constant.character.escape.scala
6767// ^ punctuation.definition.string.end.scala
68- // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ string.quoted.double.scala
68+ // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ string.quoted.double.scala
6969 """ the present string
7070// ^^^ punctuation.definition.string.begin.scala
7171// ^^^^^^^^^^^^^^^^^^^^^ string.quoted.triple.scala
7272 spans three
7373// ^^^^^^^^^^^ string.quoted.triple.scala
7474 lines."""
75- // ^^^^^^^^^ string.quoted.triple.scala
75+ // ^^^^^^^^^ string.quoted.triple.scala
7676// ^^^ punctuation.definition.string.end.scala
7777
7878 """ the present string
@@ -86,8 +86,8 @@ object StringLiterals {
8686
8787 s " $x plain ${val x = y}"
8888// ^ keyword.interpolation.scala
89- // ^ punctuation.definition.string.begin.scala
90- // ^ punctuation.definition.template-expression.begin.scala
89+ // ^ punctuation.definition.string.begin.scala
90+ // ^ punctuation.definition.template-expression.begin.scala
9191// ^ - string.quoted.double.interpolated.scala string.quoted.double.scala
9292// ^^^^^^^ string.quoted.double.interpolated.scala
9393// ^^^^^^^^^^^^ meta.template.expression.scala
@@ -96,12 +96,12 @@ object StringLiterals {
9696// ^^^ keyword.declaration.stable.scala
9797// ^^^^^^^^^ - string.quoted.double.interpolated.scala string.quoted.double.scala
9898// ^ punctuation.definition.template-expression.end.scala
99- // ^ string.quoted.double.interpolated.scala punctuation.definition.string.end.scala
99+ // ^ string.quoted.double.interpolated.scala punctuation.definition.string.end.scala
100100
101101 custom " $x plain ${val x = y}"
102102// ^^^^^^ keyword.interpolation.scala
103- // ^ punctuation.definition.string.begin.scala
104- // ^ punctuation.definition.template-expression.begin.scala
103+ // ^ punctuation.definition.string.begin.scala
104+ // ^ punctuation.definition.template-expression.begin.scala
105105// ^ - string.quoted.double.interpolated.scala string.quoted.double.scala
106106// ^^^^^^^ string.quoted.double.interpolated.scala
107107// ^^^^^^^^^^^^ meta.template.expression.scala
@@ -110,26 +110,26 @@ object StringLiterals {
110110// ^^^ keyword.declaration.stable.scala
111111// ^^^^^^^^^ - string.quoted.double.interpolated.scala string.quoted.double.scala
112112// ^ punctuation.definition.template-expression.end.scala
113- // ^ string.quoted.double.interpolated.scala punctuation.definition.string.end.scala
113+ // ^ string.quoted.double.interpolated.scala punctuation.definition.string.end.scala
114114
115115object Symbols {
116116 (' x , ' X , ' αρετη , ' = , ' + )
117117// ^^ constant.other.symbol.scala
118118// ^^ constant.other.symbol.scala
119- // ^^^^^^ constant.other.symbol.scala
119+ // ^^^^^^ constant.other.symbol.scala
120120}
121121
122122 // single line comment
123- // ^^ punctuation.definition.comment.scala
124- // ^^^^^^^^^^^^^^^^^^^^^^ comment.line.double-slash.scala
123+ // ^^ punctuation.definition.comment.scala
124+ // ^^^^^^^^^^^^^^^^^^^^^^ comment.line.double-slash.scala
125125
126126 /*
127127// ^^ punctuation.definition.comment.scala
128128 multiline comment*/
129129// ^^^^^^^^^^^^^^^^^^^ comment.block.scala
130130 /**
131131 * Scaladoc comment
132- * @scaladoc @param
132+ * @scaladoc @param
133133 */
134134
135135 /* nested /* multi-line */ comment */
0 commit comments