1
- // SYNTAX TEST "source.scala"
1
+ // SYNTAX TEST "source.scala"
2
2
3
3
object ExampleIdentifiers {
4
4
val x = 3
5
5
// ^ variable.other.declaration.scala
6
- val Object = 3
6
+ val Object = 3
7
7
val maxIndex = 3
8
- // ^^^^^^^^ variable.other.declaration.scala
9
- val p2p = 3
8
+ // ^^^^^^^^ variable.other.declaration.scala
9
+ val p2p = 3
10
10
// ^^^ variable.other.declaration.scala
11
11
val empty_? = 3
12
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
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
20
20
val dot_product_* = 3
21
21
// ^^^^^^^^^^^^^ variable.other.declaration.scala
22
- val __system = 3
22
+ val __system = 3
23
23
// ^^^^^^^^ variable.other.declaration.scala
24
24
val _MAX_LEN_ = 3
25
25
// ^^^^^^^^^ variable.other.declaration.scala
26
26
}
27
27
28
28
object IntegerLiterals {
29
29
(0 , 21 , 0xFFFFFFFF , - 42L )
30
- // ^ constant.numeric.scala
30
+ // ^ constant.numeric.scala
31
31
// ^^ constant.numeric.scala
32
32
// ^^^^^^^^^^ constant.numeric.scala
33
33
// ^ keyword.operator.arithmetic.scala
@@ -37,9 +37,9 @@ object IntegerLiterals {
37
37
object FloatingPointLiterals {
38
38
( 0.0 , 1e30f , 3.14159f , 1.0e-100 , .1 )
39
39
// ^^^ 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
43
43
}
44
44
45
45
object Boolean {
@@ -54,9 +54,9 @@ object CharacterLiterals {
54
54
// ^^^ constant.character.literal.scala
55
55
// ^ punctuation.definition.character.end.scala
56
56
// ^^^^^^^^ constant.character.literal.scala
57
- // ^^^^^^ constant.character.escape.scala
57
+ // ^^^^^^ constant.character.escape.scala
58
58
// ^^ constant.character.escape.scala
59
- // ^^ constant.character.escape.scala
59
+ // ^^ constant.character.escape.scala
60
60
}
61
61
62
62
object StringLiterals {
@@ -65,14 +65,14 @@ object StringLiterals {
65
65
// ^^^^^^^^^^^^^^^^ string.quoted.double.scala
66
66
// ^^ constant.character.escape.scala
67
67
// ^ punctuation.definition.string.end.scala
68
- // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ string.quoted.double.scala
68
+ // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ string.quoted.double.scala
69
69
""" the present string
70
70
// ^^^ punctuation.definition.string.begin.scala
71
71
// ^^^^^^^^^^^^^^^^^^^^^ string.quoted.triple.scala
72
72
spans three
73
73
// ^^^^^^^^^^^ string.quoted.triple.scala
74
74
lines."""
75
- // ^^^^^^^^^ string.quoted.triple.scala
75
+ // ^^^^^^^^^ string.quoted.triple.scala
76
76
// ^^^ punctuation.definition.string.end.scala
77
77
78
78
""" the present string
@@ -86,8 +86,8 @@ object StringLiterals {
86
86
87
87
s " $x plain ${val x = y}"
88
88
// ^ 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
91
91
// ^ - string.quoted.double.interpolated.scala string.quoted.double.scala
92
92
// ^^^^^^^ string.quoted.double.interpolated.scala
93
93
// ^^^^^^^^^^^^ meta.template.expression.scala
@@ -96,12 +96,12 @@ object StringLiterals {
96
96
// ^^^ keyword.declaration.stable.scala
97
97
// ^^^^^^^^^ - string.quoted.double.interpolated.scala string.quoted.double.scala
98
98
// ^ 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
100
100
101
101
custom " $x plain ${val x = y}"
102
102
// ^^^^^^ 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
105
105
// ^ - string.quoted.double.interpolated.scala string.quoted.double.scala
106
106
// ^^^^^^^ string.quoted.double.interpolated.scala
107
107
// ^^^^^^^^^^^^ meta.template.expression.scala
@@ -110,26 +110,26 @@ object StringLiterals {
110
110
// ^^^ keyword.declaration.stable.scala
111
111
// ^^^^^^^^^ - string.quoted.double.interpolated.scala string.quoted.double.scala
112
112
// ^ 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
114
114
115
115
object Symbols {
116
116
(' x , ' X , ' αρετη , ' = , ' + )
117
117
// ^^ constant.other.symbol.scala
118
118
// ^^ constant.other.symbol.scala
119
- // ^^^^^^ constant.other.symbol.scala
119
+ // ^^^^^^ constant.other.symbol.scala
120
120
}
121
121
122
122
// 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
125
125
126
126
/*
127
127
// ^^ punctuation.definition.comment.scala
128
128
multiline comment*/
129
129
// ^^^^^^^^^^^^^^^^^^^ comment.block.scala
130
130
/**
131
131
* Scaladoc comment
132
- * @scaladoc @param
132
+ * @scaladoc @param
133
133
*/
134
134
135
135
/* nested /* multi-line */ comment */
0 commit comments