|
87 | 87 | # ^ punctuation.section.block.begin |
88 | 88 |
|
89 | 89 | myAlias : myField ( ) |
90 | | -# ^^^^^^^ variable.parameter |
| 90 | +# ^^^^^^^ entity.name.field |
91 | 91 | # ^ meta.block punctuation.separator.key-value |
92 | 92 | # ^^^^^^^ meta.block variable.parameter |
93 | 93 | # ^ meta.block punctuation.section.group.begin |
|
102 | 102 | # ^ punctuation.section.block.end |
103 | 103 |
|
104 | 104 | myField( |
105 | | - $var = $myVar |
106 | | -# ^ punctuation.definition.variable |
107 | | -# ^^^^^ variable.other |
108 | | - $zero = 0 |
109 | | -# ^ constant.numeric.integer |
110 | | - $int = 123 |
111 | | -# ^^^ constant.numeric.integer |
112 | | - $frac = 123.45 |
113 | | -# ^^^^^^ constant.numeric.float |
114 | | - $exp1 = 123e+1 |
115 | | -# ^^^^^^ constant.numeric.float |
116 | | - $exp2 = 123e-1 |
117 | | -# ^^^^^^ constant.numeric.float |
118 | | - $exp3 = 123E1 |
119 | | -# ^^^^^ constant.numeric.float |
120 | | - $expf = 123.45e1 |
121 | | -# ^^^^^^^^ constant.numeric.float |
122 | | - $null = null |
123 | | -# ^^^^ constant.language.null |
124 | | - $true = true |
125 | | -# ^^^^ constant.language.boolean.true |
126 | | - $false= false |
127 | | -# ^^^^^ constant.language.boolean.false |
128 | | - $enum = myVal |
129 | | -# ^^^^^ constant.other |
130 | | - $str = "foo!" |
131 | | -# ^ punctuation.definition.string.begin |
132 | | -# ^^^^^^ string.quoted.double |
133 | | -# ^ punctuation.definition.string.end |
134 | | - $str2 = "\u12345" |
135 | | -# ^^^^^^ constant.character.escape.hex |
136 | | -# ^^ - constant |
137 | | - $str3 = "\u123" |
138 | | -# ^^^^^ invalid.illegal.escape |
139 | | - $str4 = "\"\\\/\b\f\n\r\t" |
140 | | -# ^^^^^^^^^^^^^^^^ constant.character.escape |
141 | | - $str5 = "\0\a" |
142 | | -# ^^^^ invalid.illegal.escape |
143 | | - $str6 = "foo |
| 105 | + var : $myVar |
| 106 | +# ^ punctuation.definition.variable |
| 107 | +# ^^^^^ variable.other |
| 108 | + zero : 0 |
| 109 | +# ^ constant.numeric.integer |
| 110 | + int : 123 |
| 111 | +# ^^^ constant.numeric.integer |
| 112 | + frac : 123.45 |
| 113 | +# ^^^^^^ constant.numeric.float |
| 114 | + exp1 : 123e+1 |
| 115 | +# ^^^^^^ constant.numeric.float |
| 116 | + exp2 : 123e-1 |
| 117 | +# ^^^^^^ constant.numeric.float |
| 118 | + exp3 : 123E1 |
| 119 | +# ^^^^^ constant.numeric.float |
| 120 | + expf : 123.45e1 |
| 121 | +# ^^^^^^^^ constant.numeric.float |
| 122 | + null : null |
| 123 | +# ^^^^ constant.language.null |
| 124 | + true : true |
| 125 | +# ^^^^ constant.language.boolean.true |
| 126 | + false: false |
| 127 | +# ^^^^^ constant.language.boolean.false |
| 128 | + enum : myVal |
| 129 | +# ^^^^^ constant.other |
| 130 | + str : "foo!" |
| 131 | +# ^ punctuation.definition.string.begin |
| 132 | +# ^^^^^^ string.quoted.double |
| 133 | +# ^ punctuation.definition.string.end |
| 134 | + str2 : "\u12345" |
| 135 | +# ^^^^^^ constant.character.escape.hex |
| 136 | +# ^^ - constant |
| 137 | + str3 : "\u123" |
| 138 | +# ^^^^^ invalid.illegal.escape |
| 139 | + str4 : "\"\\\/\b\f\n\r\t" |
| 140 | +# ^^^^^^^^^^^^^^^^ constant.character.escape |
| 141 | + str5 : "\0\a" |
| 142 | +# ^^^^ invalid.illegal.escape |
| 143 | + str6 : "foo |
144 | 144 | # ^^^^^ string.quoted.double |
145 | 145 | # not a comment |
146 | 146 | # ^^^^^^^^^^^^^^^ string - comment |
147 | 147 | bar" |
148 | 148 | # ^^^^ string.quoted.double |
149 | | - $str7 = """foo""" |
150 | | -# ^^^^^^^^^ string.quoted.triple |
151 | | -# ^^^ punctuation.definition.string.begin |
152 | | -# ^^^ punctuation.definition.string.end |
153 | | - $str8 = """foo |
154 | | -# ^^^^^^^^^ string.quoted.triple |
| 149 | + str7 : """foo""" |
| 150 | +# ^^^^^^^^^ string.quoted.triple |
| 151 | +# ^^^ punctuation.definition.string.begin |
| 152 | +# ^^^ punctuation.definition.string.end |
| 153 | + str8 : """foo |
| 154 | +# ^^^^^^^^^ string.quoted.triple |
155 | 155 | # not a comment |
156 | 156 | # ^^^^^^^^^^^^^^^ string - comment |
157 | 157 | \""" |
158 | 158 | # ^^^^ constant.character.escape |
159 | 159 | bar""" |
160 | 160 | # ^^^^^^ string.quoted.triple |
161 | 161 |
|
162 | | - $arr1 = [] |
163 | | -# ^^ meta.sequence |
164 | | -# ^ punctuation.section.sequence.begin |
165 | | -# ^ punctuation.section.sequence.end |
166 | | - $arr2 = [ 1 2 3 ] |
167 | | -# ^^^^^^^^^ meta.sequence |
168 | | -# ^ punctuation.section.sequence.begin |
169 | | -# ^ constant.numeric.integer |
170 | | -# ^ constant.numeric.integer |
| 162 | + arr1 : [] |
| 163 | +# ^^ meta.sequence |
| 164 | +# ^ punctuation.section.sequence.begin |
| 165 | +# ^ punctuation.section.sequence.end |
| 166 | + arr2 : [ 1 2 3 ] |
| 167 | +# ^^^^^^^^^ meta.sequence |
| 168 | +# ^ punctuation.section.sequence.begin |
| 169 | +# ^ constant.numeric.integer |
| 170 | +# ^ constant.numeric.integer |
| 171 | +# ^ constant.numeric.integer |
| 172 | +# ^ punctuation.section.sequence.end |
| 173 | + obj1 : {} |
| 174 | +# ^^ meta.mapping |
| 175 | +# ^ punctuation.section.mapping.begin |
| 176 | +# ^ punctuation.section.mapping.end |
| 177 | + obj2 : { foo: 1 bar: baz } |
| 178 | +# ^^^^^^^^^^^^^^^^^^^ meta.mapping |
| 179 | +# ^ punctuation.section.mapping.begin |
| 180 | +# ^^^ meta.mapping.key |
| 181 | +# ^ punctuation.separator.key-value |
171 | 182 | # ^ constant.numeric.integer |
172 | | -# ^ punctuation.section.sequence.end |
173 | | - $obj1 = {} |
174 | | -# ^^ meta.mapping |
175 | | -# ^ punctuation.section.mapping.begin |
176 | | -# ^ punctuation.section.mapping.end |
177 | | - $obj2 = { foo: 1 bar: baz } |
178 | | -# ^^^^^^^^^^^^^^^^^^^ meta.mapping |
179 | | -# ^ punctuation.section.mapping.begin |
180 | | -# ^^^ meta.mapping.key |
181 | | -# ^ punctuation.separator.key-value |
182 | | -# ^ constant.numeric.integer |
183 | | -# ^^^ meta.mapping.key |
184 | | -# ^ punctuation.separator.key-value |
185 | | -# ^^^ constant.other |
186 | | -# ^ punctuation.section.mapping.end |
| 183 | +# ^^^ meta.mapping.key |
| 184 | +# ^ punctuation.separator.key-value |
| 185 | +# ^^^ constant.other |
| 186 | +# ^ punctuation.section.mapping.end |
187 | 187 | ) |
188 | 188 |
|
189 | 189 | } |
|
0 commit comments