From 598bd8bf11b0f6ee6cf8b59c3415fa0d5d6cd1ff Mon Sep 17 00:00:00 2001 From: ath3 Date: Fri, 18 Nov 2022 21:13:13 +0100 Subject: Update tree-sitter-cmake (#4809) --- languages.toml | 2 +- runtime/queries/cmake/textobjects.scm | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/languages.toml b/languages.toml index c40b0d50..47d77fee 100644 --- a/languages.toml +++ b/languages.toml @@ -831,7 +831,7 @@ injection-regex = "cmake" [[grammar]] name = "cmake" -source = { git = "https://github.com/uyha/tree-sitter-cmake", rev = "f6616f1e417ee8b62daf251aa1daa5d73781c596" } +source = { git = "https://github.com/uyha/tree-sitter-cmake", rev = "6e51463ef3052dd3b328322c22172eda093727ad" } [[language]] name = "make" diff --git a/runtime/queries/cmake/textobjects.scm b/runtime/queries/cmake/textobjects.scm index 1fa9ded5..049aa84a 100644 --- a/runtime/queries/cmake/textobjects.scm +++ b/runtime/queries/cmake/textobjects.scm @@ -1,4 +1,7 @@ -(macro_def) @function.around +[ + (macro_def) + (function_def) +] @function.around (argument) @parameter.inside -- cgit v1.2.3-70-g09d2