From: Yuan Fu Date: Wed, 21 Sep 2022 01:01:15 +0000 (-0700) Subject: Rename treesit-expand-query/pattern X-Git-Tag: emacs-29.0.90~1882 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=013c7d6aaef5f90730b1cfe42a01534d891e895a;p=emacs.git 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. --- 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")))))))