1
0
mirror of https://github.com/helix-editor/helix synced 2024-11-10 10:34:45 +01:00
helix/runtime/queries/cpp/textobjects.scm
Sebastian Neubauer 5b1a628e81
Add textobjects and indents to c and cpp (#1293)
Indentation of single line statements doesn't work, i.e.

  for (;;)<hit enter>
leads to
  for(;;)
  <cursor here>

Only blocks with curly braces are indented.
2022-01-04 10:53:04 +09:00

8 lines
140 B
Scheme

; inherits: c
(lambda_expression
body: (_) @function.inside) @function.around
(class_specifier
body: (_) @class.inside) @class.around