From 013c7d6aaef5f90730b1cfe42a01534d891e895a Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Tue, 20 Sep 2022 18:01:15 -0700 Subject: [PATCH] Rename treesit-expand-query/pattern * src/treesit.c (treesit-expand-pattern): Rename to treesit-patter-expand. (treesit-expand-query): Rename to treesit-query-expand. (make_ts_query): Use new name. * test/src/treesit-tests.el (treesit-query-api): Fix name. --- test/src/treesit-tests.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/src/treesit-tests.el b/test/src/treesit-tests.el index ebfe650dc08..aea417d47ee 100644 --- a/test/src/treesit-tests.el +++ b/test/src/treesit-tests.el @@ -163,11 +163,11 @@ (treesit-node-text (cdr entry)))) (treesit-query-capture root-node query)))))) - ;; Test `treesit-expand-query'. + ;; Test `treesit-query-expand'. (should (equal "(type field: (_) @capture .) ? * + \"return\"" - (treesit-expand-query + (treesit-query-expand '((type field: (_) @capture :anchor) :? :* :+ "return"))))))) -- 2.39.5