1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-05 22:20:24 -08:00
emacs/lisp/progmodes
Juri Linkov e9d17e4197 Improve treesit settings for {json,html,toml,yaml}-ts-mode (bug#73404)
* lisp/progmodes/json-ts-mode.el (json-ts-mode): Add 'list' thing
to 'treesit-thing-settings'.
(json-ts-mode): Disable outlines.

* lisp/textmodes/html-ts-mode.el (html-ts-mode--defun-name):
Get a grandchild 'tag_name' from 'element' that was already
defined by 'treesit-defun-type-regexp'.
(html-ts-mode--outline-predicate): New function.
(html-ts-mode): Add "comment" to the 'list' thing
in 'treesit-thing-settings'.  Use "tag_name" and "attribute"
in 'sentence' to conform to sentence navigating arguments
in other ts-modes.  Remove unnecessary heading
from 'treesit-simple-imenu-settings' and use "element"
supported by 'html-ts-mode--defun-name'.
Set 'treesit-outline-predicate' to 'html-ts-mode--outline-predicate'.

* lisp/textmodes/toml-ts-mode.el (toml-ts-mode):
Add 'treesit-thing-settings'.

* lisp/textmodes/yaml-ts-mode.el (yaml-ts-mode--defun-name)
(yaml-ts-mode--outline-predicate): New functions.
(yaml-ts-mode): Set 'treesit-defun-type-regexp',
'treesit-defun-name-function', 'treesit-defun-tactic'.
Add 'sentence' to 'treesit-thing-settings'.
Set 'treesit-simple-imenu-settings' and 'treesit-outline-predicate'.
Use 'kill-local-variable' for 'forward-sexp-function'
and 'show-paren-data-function' instead of resetting their value.

* lisp/treesit.el (treesit-outline-search): Check for the thing
before the end of the line to support such case when the thing
fits on the current line and ends before the end of the line
such as e.g. '<h1>...</h1>' in html-ts-mode.
(treesit-hs-find-next-block, treesit-hs-inside-comment-p):
Use anchors for "\\`comment\\'" (bug#75609).
2025-02-09 19:54:02 +02:00
..
antlr-mode.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
asm-mode.el (asm-mode): Fix bug#75542 2025-01-16 17:18:24 -05:00
autoconf.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
bat-mode.el Prefer defvar-keymap in bat-mode.el 2025-01-20 18:32:33 +01:00
bug-reference.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
c-ts-common.el Improve doxygen font-lock rules in c-ts-mode (bug#75012) 2025-01-03 23:38:32 -08:00
c-ts-mode.el Use treesit-query-first-valid in c-ts-mode 2025-01-17 17:27:23 -08:00
cc-align.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
cc-awk.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
cc-bytecomp.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
cc-cmds.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
cc-defs.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
cc-engine.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
cc-fonts.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
cc-guess.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
cc-langs.el Add keywords var and final to Java Mode 2025-01-08 14:07:36 +00:00
cc-menus.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
cc-mode.el Merge from origin/emacs-30 2025-02-01 07:39:56 -05:00
cc-styles.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
cc-vars.el Remove leading '*' from docstrings in cc-vars.el 2025-02-07 22:30:27 +01:00
cfengine.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
cl-font-lock.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
cmacexp.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
cmake-ts-mode.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
compile.el Merge branch 'scratch/no-purespace' into 'master' 2025-02-01 04:56:52 +01:00
cperl-mode.el Merge from origin/emacs-30 2025-01-18 07:46:34 -05:00
cpp.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
csharp-mode.el lisp/progmodes/csharp-mode.el: Improve string-interpolation 2025-02-08 12:54:25 +02:00
cwarn.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
dcl-mode.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
dockerfile-ts-mode.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
ebnf-abn.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
ebnf-bnf.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
ebnf-dtd.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
ebnf-ebx.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
ebnf-iso.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
ebnf-otz.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
ebnf-yac.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
ebnf2ps.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
ebrowse.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
eglot.el Eglot: auto-expand first level in type and call hierarchies 2025-02-08 13:42:08 +00:00
elisp-mode.el Merge from origin/emacs-30 2025-02-01 07:40:19 -05:00
elixir-ts-mode.el Merge from origin/emacs-30 2025-01-04 09:59:52 -05:00
erts-mode.el Prefer defface's ':weight bold' to obsolete alias ':bold t' 2025-01-21 09:29:09 +01:00
etags-regen.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
etags.el ; * lisp/progmodes/etags.el (tags-verify-table): Improve comment (bug#75946). 2025-02-01 15:44:47 +02:00
executable.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
f90.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
flymake-cc.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
flymake-proc.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
flymake.el Flymake: fix bug introduced recently 2025-01-17 10:58:15 +00:00
fortran.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
gdb-mi.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
glasses.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
go-ts-mode.el Merge from origin/emacs-30 2025-01-25 10:06:19 -05:00
grep.el Merge branch 'scratch/no-purespace' into 'master' 2025-02-01 04:56:52 +01:00
gud.el Mark IRIX support in GUD as obsolete 2025-02-07 21:22:38 +01:00
heex-ts-mode.el Merge from origin/emacs-30 2025-01-04 09:59:55 -05:00
hideif.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
hideshow.el Merge branch 'scratch/no-purespace' into 'master' 2025-02-01 04:56:52 +01:00
icon.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
inf-lisp.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
java-ts-mode.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
js.el Correctly handled the local parser for jsdoc (bug#75456) 2025-02-04 23:54:47 -08:00
json-ts-mode.el Improve treesit settings for {json,html,toml,yaml}-ts-mode (bug#73404) 2025-02-09 19:54:02 +02:00
ld-script.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
lua-ts-mode.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
m4-mode.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
make-mode.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
meta-mode.el Merge from origin/emacs-30 2025-01-25 10:06:19 -05:00
mixal-mode.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
modula2.el Don't start docstrings with "This function" or similar 2024-12-26 21:02:45 +01:00
octave.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
opascal.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
pascal.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
peg.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
perl-mode.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
php-ts-mode.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
prog-mode.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
project.el Merge from origin/emacs-30 2025-01-04 09:59:52 -05:00
prolog.el Prefer defface's ':slant italic' to obsolete alias ':italic t' 2025-01-21 09:56:59 +01:00
ps-mode.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
python.el Make it configurable to highlight Python 2 builtins 2025-02-04 23:28:00 +01:00
ruby-mode.el Merge branch 'scratch/no-purespace' into 'master' 2025-02-01 04:56:52 +01:00
ruby-ts-mode.el Use the treesit thing 'list' with symbol property 'treesit-thing-symbol' 2025-01-10 09:33:49 +02:00
rust-ts-mode.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
scheme.el Add scheme-mode indentation for SRFI 64, R7RS guard 2025-02-06 02:02:45 +01:00
sh-script.el * lisp/progmodes/sh-script.el (bash-ts-mode): Improve treesit settings. 2025-02-07 09:47:41 +02:00
simula.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
sql.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
subword.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
tcl.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
typescript-ts-mode.el Improve typescript-ts-mode fontification (bug#75824) 2025-01-31 18:54:20 -08:00
vera-mode.el Merge branch 'scratch/no-purespace' into 'master' 2025-02-01 04:56:52 +01:00
verilog-mode.el Prefer defface's ':slant italic' to obsolete alias ':italic t' 2025-01-21 09:56:59 +01:00
vhdl-mode.el Prefer defface's ':slant italic' to obsolete alias ':italic t' 2025-01-21 09:56:59 +01:00
which-func.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
xref.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
xscheme.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00