summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp/easy-mmode-tests.el
diff options
context:
space:
mode:
authorYuan Fu <casouri@gmail.com>2022-12-06 19:56:25 -0800
committerYuan Fu <casouri@gmail.com>2022-12-07 12:01:37 -0800
commitd31a25398347f1646b0c37a27f82ac3771a7cc15 (patch)
tree9bfa28a766714fdd6e6cebab4c88a444eb2c6fd5 /test/lisp/emacs-lisp/easy-mmode-tests.el
parenta669d5fae54ad31fe65c2e285124bf90f900a08f (diff)
downloademacs-d31a25398347f1646b0c37a27f82ac3771a7cc15.tar.gz
emacs-d31a25398347f1646b0c37a27f82ac3771a7cc15.tar.bz2
emacs-d31a25398347f1646b0c37a27f82ac3771a7cc15.zip
Improve parameter checking in tree-sitter functions
* src/treesit.c (treesit_check_position): Extract out new function. (Ftreesit_node_first_child_for_pos) (Ftreesit_node_descendant_for_range): Replace code with the new function. (Ftreesit_query_capture): Add missing check for node and parser. Add check for range for BEG and END. Move treesit_initialize to the beginning of the function. * test/src/treesit-tests.el (treesit-node-api) (treesit-query-api): Add tests for out-of-range error.
Diffstat (limited to 'test/lisp/emacs-lisp/easy-mmode-tests.el')
0 files changed, 0 insertions, 0 deletions