on master help sign in
Add textobjects and indents to cmake (#1307)
ec878e4Sebastian Neubauer
book/src/generated/lang-support.md+1−1
@@ -3,7 +3,7 @@
3| bash | ✓ | | | `bash-language-server` |
3| bash | ✓ | | | `bash-language-server` |
4| c | ✓ | | | `clangd` |
4| c | ✓ | | | `clangd` |
5| c-sharp | ✓ | | | |
5| c-sharp | ✓ | | | |
6−| cmake | ✓ | | | `cmake-language-server` |
6+| cmake | ✓ | ✓ | ✓ | `cmake-language-server` |
7| comment | ✓ | | | |
7| comment | ✓ | | | |
8| cpp | ✓ | | | `clangd` |
8| cpp | ✓ | | | `clangd` |
9| css | ✓ | | | |
9| css | ✓ | | | |
runtime/queries/cmake/indents.tomlnew file+12
@@ -0,0 +1,12 @@
1+indent = [
2+ "if_condition",
3+ "foreach_loop",
4+ "while_loop",
5+ "function_def",
6+ "macro_def",
7+ "normal_command",
8+]
9+
10+outdent = [
11+ ")"
12+]
runtime/queries/cmake/textobjects.scmnew file+3
@@ -0,0 +1,3 @@
1+(macro_def) @function.around
2+
3+(argument) @parameter.inside