emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature/tree-sitter 013c7d6aae 01/15: Rename treesit-expand-query/patter


From: Yuan Fu
Subject: feature/tree-sitter 013c7d6aae 01/15: Rename treesit-expand-query/pattern
Date: Sun, 25 Sep 2022 00:11:59 -0400 (EDT)

branch: feature/tree-sitter
commit 013c7d6aaef5f90730b1cfe42a01534d891e895a
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>

    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 ebfe650dc0..aea417d47e 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")))))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]