Skip to content

Commit

Permalink
Add textobjects and indents to cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
Flakebi committed Dec 19, 2021
1 parent e72786d commit d11f4dd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions runtime/queries/cmake/indents.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
indent = [
"if_condition",
"foreach_loop",
"while_loop",
"function_def",
"macro_def",
"normal_command",
]

outdent = [
")"
]
3 changes: 3 additions & 0 deletions runtime/queries/cmake/textobjects.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(macro_def) @function.around

(argument) @parameter.inside

0 comments on commit d11f4dd

Please sign in to comment.