@@ -248,30 +248,30 @@ contexts:
248248
249249 brackets :
250250 - match : \[
251- scope : punctuation.section.brackets.begin.log
251+ scope : meta.brackets.log punctuation.section.brackets.begin.log
252252 push : bracket-body
253253
254254 bracket-body :
255- - meta_scope : meta.brackets.log
255+ - meta_content_scope : meta.brackets.log
256256 - match : \]
257- scope : punctuation.section.brackets.end.log
257+ scope : meta.brackets.log punctuation.section.brackets.end.log
258258 pop : 1
259259 - include : content
260260
261261 parens :
262262 - match : \(
263- scope : punctuation.section.parens.begin.log
263+ scope : meta.parens.log punctuation.section.parens.begin.log
264264 push : paren-body
265265
266266 paren :
267267 - match : \(
268- scope : punctuation.section.parens.begin.log
268+ scope : meta.parens.log punctuation.section.parens.begin.log
269269 set : paren-body
270270
271271 paren-body :
272- - meta_scope : meta.parens.log
272+ - meta_content_scope : meta.parens.log
273273 - match : \)
274- scope : punctuation.section.parens.end.log
274+ scope : meta.parens.log punctuation.section.parens.end.log
275275 pop : 1
276276 - include : log-entries
277277 - include : content
@@ -382,18 +382,26 @@ contexts:
382382
383383 cmd-args :
384384 - meta_scope : meta.function-call.latex
385- - include : brackets
386- - include : parens
387- - match : \{
388- scope : punctuation.section.braces.begin.log
385+ - include : comments
386+ - match : \s*(\{)
387+ captures :
388+ 1 : meta.braces.log punctuation.section.braces.begin.log
389389 push : cmd-args-body
390- - match : ' '
390+ - match : \s*(\[)
391+ captures :
392+ 1 : meta.brackets.log punctuation.section.brackets.begin.log
393+ push : bracket-body
394+ - match : \s*(\()
395+ captures :
396+ 1 : meta.parens.log punctuation.section.parens.begin.log
397+ push : paren-body
398+ - match : ^|(?=\s*\S)
391399 pop : 1
392400
393401 cmd-args-body :
394- - meta_scope : meta.braces.log
402+ - meta_content_scope : meta.braces.log
395403 - match : \}
396- scope : punctuation.section.braces.end.log
404+ scope : meta.braces.log punctuation.section.braces.end.log
397405 pop : 1
398406 - include : content
399407
0 commit comments