Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
(function_declaration
body: (_
"{"
(_)* @function.inside
"}")) @function.around
(method_declaration
body: (_
"{"
(_)* @function.inside
"}")) @function.around
(type_declaration
(type_spec
(struct_type
(field_declaration_list
("{"
(_)* @class.inside
"}")?)))) @class.around
(type_declaration
(type_spec
(interface_type
(_)* @class.inside))) @class.around
(type_declaration) @class.around
(comment)+ @comment.around