Something went wrong. Try again.
a few hacks on top of zed
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152; functions(function_signature_item) @function.around
(function_item body: (_ "{" (_)* @function.inside "}" )) @function.around
; classes(struct_item body: (_ ["{" "("]? [(_) ","?]* @class.inside ["}" ")"]? )) @class.around
(enum_item body: (_ "{" [(_) ","?]* @class.inside "}" )) @class.around
(union_item body: (_ "{" [(_) ","?]* @class.inside "}" )) @class.around
(trait_item body: (_ "{" [(_) ","?]* @class.inside "}" )) @class.around
(impl_item body: (_ "{" [(_) ","?]* @class.inside "}" )) @class.around
(mod_item body: (_ "{" [(_) ","?]* @class.inside "}" )) @class.around
; comments
(line_comment)+ @comment.around
(block_comment) @comment.around