1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00
emacs/lisp/textmodes
Juri Linkov dbc0e5a52d Improve treesit settings for js-ts-mode (bug#73404)
* lisp/progmodes/js.el (js--treesit-font-lock-settings):
Add 'class' alongside 'class_declaration'.
(js--treesit-defun-name): Add "variable_declaration"
alongside "lexical_declaration".
(js--treesit-valid-imenu-entry): Add "variable_declaration"
and provide the predicate to 'treesit-node-top-level'.
(js--treesit-sentence-nodes): Add "jsx_attribute" like in html-ts-mode
instead of jsx elements matched in 'js--treesit-list-nodes'.
(js--treesit-list-nodes): Add "jsx_element" and "jsx_self_closing_element"
instead of "_jsx_string".
(js--treesit-simple-imenu-settings): Move "method_definition" to separate
section "Method" from the "Class" section.  Add "variable_declaration"
to the "Variable" section.
(js-ts-mode--outline-predicate): New variable.
(js--treesit-defun-type-regexp): Add bos/eos.
(js--treesit-jsdoc-comment-regexp): Add bos/eos.
(js-ts-mode): Set treesit-outline-predicate to
'js-ts-mode--outline-predicate'.

* lisp/textmodes/mhtml-ts-mode.el (mhtml-ts-mode--html-defun-name):
Remove unused function.
(mhtml-ts-mode): Use 'js-ts-mode--outline-predicate' in
'treesit-aggregated-outline-predicate'.

* lisp/textmodes/yaml-ts-mode.el (yaml-ts-mode--outline-predicate):
Use 'treesit-node-top-level' instead of 'treesit-parent-until'.
2025-03-03 20:38:40 +02:00
..
artist.el
bib-mode.el
bibtex-style.el
bibtex.el ; Fix typos 2025-02-22 14:48:29 +01:00
conf-mode.el Prefer defvar-keymap in conf-mode.el 2025-02-19 23:36:07 +01:00
css-mode.el Adapt recent css-ts-mode changes to mhtml-ts-mode 2025-03-02 20:44:40 +02:00
dns-mode.el Prefer plusp/minusp to cl-plusp/cl-minusp 2025-02-17 22:46:56 +01:00
emacs-authors-mode.el
emacs-news-mode.el Delete redundant lambdas around unary functions 2025-02-11 19:04:00 +01:00
enriched.el
fill.el Merge branch 'scratch/no-purespace' into 'master' 2025-02-01 04:56:52 +01:00
flyspell.el
glyphless-mode.el
html-ts-mode.el New variable 'treesit-aggregated-outline-predicate' (bug#76398) 2025-02-21 09:55:54 +02:00
ispell.el Delete redundant lambdas around unary functions 2025-02-11 19:04:00 +01:00
less-css-mode.el
makeinfo.el
markdown-ts-mode.el Improve 'treesit-outline-search' 2025-02-27 19:21:45 +02:00
mhtml-mode.el
mhtml-ts-mode.el Improve treesit settings for js-ts-mode (bug#73404) 2025-03-03 20:38:40 +02:00
nroff-mode.el
page-ext.el
page.el
paragraphs.el
picture.el
pixel-fill.el
po.el
refbib.el
refer.el
refill.el
reftex-auc.el
reftex-cite.el Prefer decf to cl-decf 2025-02-23 00:38:22 +01:00
reftex-dcr.el Prefer incf to cl-incf in textmodes/*.el 2025-02-24 19:27:47 +01:00
reftex-global.el Prefer incf to cl-incf in textmodes/*.el 2025-02-24 19:27:47 +01:00
reftex-index.el Prefer incf to cl-incf in textmodes/*.el 2025-02-24 19:27:47 +01:00
reftex-parse.el Prefer incf to cl-incf in textmodes/*.el 2025-02-24 19:27:47 +01:00
reftex-ref.el Prefer incf to cl-incf in textmodes/*.el 2025-02-24 19:27:47 +01:00
reftex-sel.el Prefer incf to cl-incf in textmodes/*.el 2025-02-24 19:27:47 +01:00
reftex-toc.el
reftex-vars.el
reftex.el Prefer incf to cl-incf in textmodes/*.el 2025-02-24 19:27:47 +01:00
remember.el
rst.el Prefer incf to cl-incf in textmodes/*.el 2025-02-24 19:27:47 +01:00
sgml-mode.el
string-edit.el
table.el
tex-mode.el Prefer incf to cl-incf in textmodes/*.el 2025-02-24 19:27:47 +01:00
texinfmt.el
texinfo.el Merge branch 'scratch/no-purespace' into 'master' 2025-02-01 04:56:52 +01:00
texnfo-upd.el
text-mode.el New commands to convert ASCII to fullwidth characters and back 2025-03-02 15:25:53 +02:00
tildify.el
toml-ts-mode.el Improve treesit settings for {json,html,toml,yaml}-ts-mode (bug#73404) 2025-02-09 19:54:02 +02:00
two-column.el
underline.el
word-wrap-mode.el
yaml-ts-mode.el Improve treesit settings for js-ts-mode (bug#73404) 2025-03-03 20:38:40 +02:00