aboutsummaryrefslogtreecommitdiffstats
path: root/java/debug.sh
diff options
context:
space:
mode:
authorYuan Fu2025-02-27 17:18:28 -0800
committerYuan Fu2025-02-27 17:22:04 -0800
commit8a3e19f4b39be68c22e056d56adb86397e25a673 (patch)
tree39bebe021eee23d4bdcf14ff4b4fbce17737b020 /java/debug.sh
parent8a45c2da226e188420956fd6269f72db3f437e38 (diff)
downloademacs-8a3e19f4b39be68c22e056d56adb86397e25a673.tar.gz
emacs-8a3e19f4b39be68c22e056d56adb86397e25a673.zip
Support alternative range function for tree-sitter range settings
Some embedded parser needs to exclude child nodes from the range, like markdown-inline. So I added this keyword that allows users to customize the range for the embedded parser. This can also be potentially useful for markdown comments in rust, for example, because we want to exclude the comment starters (//) from the embedded markdown parser. * lisp/treesit.el (treesit-query-range): (treesit-query-range-by-language): Add new parameter RANGE-FN. (treesit-range-settings): Add new field RANGE-FN. (treesit-range-rules): Add new keyword RANGE-FN. (treesit-range-fn-exclude-children): New function. (treesit--update-ranges-non-local): (treesit--update-ranges-local): (treesit--update-range-1): Support the RANGE-FN field.
Diffstat (limited to 'java/debug.sh')
0 files changed, 0 insertions, 0 deletions