]> git.eshelyaron.com Git - emacs.git/commitdiff
Rename treesit-expand-query/pattern
authorYuan Fu <casouri@gmail.com>
Wed, 21 Sep 2022 01:01:15 +0000 (18:01 -0700)
committerYuan Fu <casouri@gmail.com>
Sun, 25 Sep 2022 04:11:29 +0000 (21:11 -0700)
* 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

index ebfe650dc081165c8290952c02490732409d252e..aea417d47ee94b224810807439007a8533971449 100644 (file)
                             (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")))))))