diff options
author | Juri Linkov <juri@linkov.net> | 2025-01-10 09:33:49 +0200 |
---|---|---|
committer | Juri Linkov <juri@linkov.net> | 2025-01-10 09:33:49 +0200 |
commit | 42a5ac3b513ff03c64c9609fc7e79c2b7932b2a4 (patch) | |
tree | 06b2ef0583b21d7095a476c22c1fb936fa375741 /lisp/emacs-lisp/comp-common.el | |
parent | 351b6ac16d29459c5800bd980d428e61ee43cb7d (diff) | |
download | emacs-42a5ac3b513ff03c64c9609fc7e79c2b7932b2a4.tar.gz emacs-42a5ac3b513ff03c64c9609fc7e79c2b7932b2a4.tar.bz2 emacs-42a5ac3b513ff03c64c9609fc7e79c2b7932b2a4.zip |
Use the treesit thing 'list' with symbol property 'treesit-thing-symbol'
* doc/lispref/parsing.texi (User-defined Things): Mention new
functions 'treesit-forward-list', 'treesit-down-list',
'treesit-up-list', 'treesit-show-paren-data' that use the thing
'list' with the symbol property 'treesit-thing-symbol' (bug#73404).
* lisp/treesit.el: Put the property 'treesit-thing-symbol'
on the symbol 'list'.
(treesit--forward-list-with-default, treesit-down-list)
(treesit-up-list, treesit-navigate-thing)
(treesit-show-paren-data--categorize, treesit-major-mode-setup):
Replace 'sexp-list' with 'list'.
* lisp/progmodes/c-ts-mode.el (c-ts-mode--thing-settings):
* lisp/progmodes/js.el (js-ts-mode):
* lisp/progmodes/ruby-ts-mode.el (ruby-ts-mode):
* lisp/progmodes/typescript-ts-mode.el (typescript-ts-base-mode)
(tsx-ts-mode):
* lisp/textmodes/html-ts-mode.el (html-ts-mode):
Replace 'sexp-list' with 'list'.
* src/treesit.c (treesit_traverse_validate_predicate)
(treesit_traverse_match_predicate): Check if the 'pred'
symbol has the property 'Qtreesit_thing_symbol'.
(syms_of_treesit): New symbol 'Qtreesit_thing_symbol'.
Diffstat (limited to 'lisp/emacs-lisp/comp-common.el')
0 files changed, 0 insertions, 0 deletions