mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 21:40:03 -04:00
Add C/C++ textobjects
This commit is contained in:
parent
d685d82682
commit
5e83307a43
2 changed files with 53 additions and 0 deletions
6
queries/cpp/textobjects.scm
Normal file
6
queries/cpp/textobjects.scm
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
|
||||
(class_specifier
|
||||
body: (_) @class.inner) @class.outer
|
||||
|
||||
(for_range_loop
|
||||
(_)? @loop.inner) @loop.outer
|
||||
Loading…
Add table
Add a link
Reference in a new issue