File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ contexts:
173
173
1 : support.macro.rust
174
174
2 : meta.group.rust punctuation.definition.group.begin.rust
175
175
push :
176
- - meta_content_scope : meta.group.rust
176
+ - meta_scope : meta.group.rust
177
177
- include : comments
178
178
- match : ' ,'
179
179
set :
@@ -182,6 +182,7 @@ contexts:
182
182
- include : format-raw-string
183
183
- match : ' (?=\S)'
184
184
set : group-tail
185
+ - include : group-tail
185
186
186
187
- match : ' \b[[:lower:]_][[:lower:][:digit:]_]*!(?=\s*(\(|\{|\[))'
187
188
scope : support.macro.rust
Original file line number Diff line number Diff line change @@ -259,6 +259,28 @@ impl fmt::Display for PrintableStruct {
259
259
// ^^^^ string.quoted.double
260
260
// ^^ constant.other.placeholder
261
261
// ^ punctuation.definition.group.end
262
+ write ! ( get_writer( ) , "{}" , "{}" )
263
+ // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.function
264
+ // ^^^^^^ support.macro
265
+ // ^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.group
266
+ // ^^^^^^^^^^ support.function
267
+ // ^^^^ string.quoted.double
268
+ // ^^ constant.other.placeholder
269
+ // ^^^^ string.quoted.double
270
+ // ^ punctuation.definition.group.begin
271
+ // ^ punctuation.definition.group.end
272
+ writeln ! ( w)
273
+ // ^^^^^^^^^^^^^^^^ meta.function
274
+ // ^^^^^^^^ support.macro
275
+ // ^^^ meta.group
276
+ // ^ punctuation.definition.group.begin
277
+ // ^ punctuation.definition.group.end
278
+ println ! ( )
279
+ // ^^^^^^^^^^^^^^^ meta.function
280
+ // ^^^^^^^^ support.macro
281
+ // ^^ meta.group
282
+ // ^ punctuation.definition.group.begin
283
+ // ^ punctuation.definition.group.end
262
284
}
263
285
// ^^ meta.function meta.block
264
286
// ^ punctuation.definition.block.end
You can’t perform that action at this time.
0 commit comments