]> git.eshelyaron.com Git - emacs.git/commit
Fix treesit-parser-set-included-ranges
authorYuan Fu <casouri@gmail.com>
Fri, 4 Nov 2022 05:14:50 +0000 (22:14 -0700)
committerYuan Fu <casouri@gmail.com>
Fri, 4 Nov 2022 05:14:50 +0000 (22:14 -0700)
commitb86deb617b109bcb40e9c95b10a033a209c1d8fd
tree57ccdf73fe3c3eafbda814abe52fac7bf968da57
parentc5f24f76eb1653d64c2ae90764e395cf6e050657
Fix treesit-parser-set-included-ranges

Track whether a parser has ranges set ourselves.  See comment in
Ftreesit_parser_included_ranges for detail.

* src/treesit.c (make_treesit_parser): Initialize has_range.
(Ftreesit_parser_set_included_ranges): Set has_range.  Fill docstring.
(Ftreesit_parser_included_ranges): Check has_range.
* src/treesit.h (Lisp_TS_Parser): Add has_range.
src/treesit.c
src/treesit.h