1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-31 09:20:54 -08:00
emacs/lisp/progmodes
Yuan Fu ec00d292ec
Improve treesit-fontify-with-override
This also fixes fontification problem with c-ts-mode--fontify-defun.

Now treesit-fontify-with-override clips the fontification region for
the user, so no need for (max start node-start) shenanigans anymore.
More importantly it doesn't fontify unless the region between
node-start and node-end intersects with the region between start and
end, which fixes the problem with c-ts-mode--fontify-defun.

* lisp/treesit.el (treesit-fontify-with-override): Add optional
parameter BOUND-START and BOUND-END.  Wrap the function body in a
when-form.
* lisp/progmodes/c-ts-mode.el (c-ts-mode--fontify-declarator)
(c-ts-mode--fontify-variable)
(c-ts-mode--fontify-defun)
(c-ts-fontify-error)
* lisp/progmodes/js.el (js--fontify-template-string)
* lisp/progmodes/python.el (python--treesit-fontify-string): Use the
new signature.
2022-12-04 20:03:28 -08:00
..
antlr-mode.el ; Fix typos (don't abbreviate "with" or "without") 2022-12-01 16:36:09 +01:00
asm-mode.el ; Fix typos (don't abbreviate "with" or "without") 2022-12-01 16:36:09 +01:00
autoconf.el
bat-mode.el
bug-reference.el
c-ts-mode.el Improve treesit-fontify-with-override 2022-12-04 20:03:28 -08:00
cc-align.el
cc-awk.el
cc-bytecomp.el ; Fix typos 2022-11-11 15:52:37 +01:00
cc-cmds.el ; Fix typos 2022-11-18 16:02:19 +01:00
cc-defs.el Add to /etc/NEWS a mention of the new C++20 support in CC Mode 2022-11-10 11:57:42 +00:00
cc-engine.el CC Mode: Prevent lone ids being parsed as types unless in decl arglists 2022-11-29 20:22:58 +00:00
cc-fonts.el
cc-guess.el
cc-langs.el CC Mode: Make it scroll fast over buffers with only #define's 2022-11-24 10:51:03 +00:00
cc-menus.el
cc-mode.el CC Mode: Make it scroll fast over buffers with only #define's 2022-11-24 10:51:03 +00:00
cc-styles.el
cc-vars.el Allow csharp-mode in c-default-style 2022-11-29 17:35:28 +01:00
cfengine.el
cl-font-lock.el
cmacexp.el
compile.el ; Fix typos (don't abbreviate "with" or "without") 2022-12-01 16:36:09 +01:00
cperl-mode.el Normalize some syntax table definitions 2022-11-04 15:04:45 +01:00
cpp.el Use progress reporter in cpp.el 2022-11-04 20:12:15 +01:00
csharp-mode.el Fix comment-start-skip in tree-sitter modes (bug#59690) 2022-12-03 14:49:38 -08:00
cwarn.el
dcl-mode.el Normalize some syntax table definitions 2022-11-04 15:04:45 +01:00
ebnf-abn.el
ebnf-bnf.el
ebnf-dtd.el
ebnf-ebx.el
ebnf-iso.el
ebnf-otz.el
ebnf-yac.el
ebnf2ps.el ; Fix typos 2022-11-18 16:02:19 +01:00
ebrowse.el
eglot.el Add tsx-ts-mode to eglot-server-programs 2022-12-02 12:56:13 +01:00
elisp-mode.el Rename 'elisp-eval-buffer' to 'elisp-eval-region-or-buffer' (bug#59350) 2022-11-20 20:10:45 +02:00
erts-mode.el
etags.el Prefer defvar-keymap in etags.el 2022-10-30 13:16:03 +01:00
executable.el
f90.el
flymake-cc.el ; Fix typos (misspelled symbols) 2022-11-21 15:20:11 +01:00
flymake-proc.el
flymake.el ; Fix typos (duplicate words) 2022-11-17 09:34:24 +01:00
fortran.el
gdb-mi.el ; Consistently call alists "association list" 2022-11-27 18:12:45 +01:00
glasses.el
grep.el
gud.el Revert "Make easy-mmode-defmap obsolete and adjust only caller" 2022-12-03 11:16:41 +02:00
hideif.el
hideshow.el ; Fix typos 2022-11-20 12:59:39 +01:00
icon.el
idlw-complete-structtag.el
idlw-help.el
idlw-shell.el ; Fix typos (misspelled symbols) 2022-11-21 15:20:11 +01:00
idlw-toolbar.el
idlwave.el ; Fix typos 2022-11-23 05:49:22 +01:00
inf-lisp.el
java-ts-mode.el Fix comment-start-skip in tree-sitter modes (bug#59690) 2022-12-03 14:49:38 -08:00
js.el Improve treesit-fontify-with-override 2022-12-04 20:03:28 -08:00
json-ts-mode.el Utilize new font-lock faces for more tree-sitter modes (Bug#59397) 2022-11-22 19:07:26 -08:00
ld-script.el
m4-mode.el
make-mode.el
meta-mode.el
mixal-mode.el Remove redundant library installation instructions 2022-11-11 04:29:29 +01:00
modula2.el
octave.el Prefer defvar-keymap in octave.el 2022-11-06 15:40:19 +01:00
opascal.el
pascal.el
perl-mode.el Remove redundant library installation instructions 2022-11-11 04:29:29 +01:00
prog-mode.el ; Fix typos 2022-11-20 12:59:39 +01:00
project.el Use file-name-nondirectory to determine default project-name 2022-12-02 17:12:43 +02:00
prolog.el
ps-mode.el
python.el Improve treesit-fontify-with-override 2022-12-04 20:03:28 -08:00
ruby-mode.el
scheme.el ; Fix typos (don't abbreviate "with" or "without") 2022-12-01 16:36:09 +01:00
sh-script.el Speed up auto-completion in 'sh-script-mode' 2022-12-02 15:42:09 +02:00
simula.el Prefer defvar-keymap in simula.el 2022-10-30 21:33:35 +01:00
sql.el ; Fix typos 2022-11-18 16:02:19 +01:00
subword.el
tcl.el
typescript-ts-mode.el Fix comment-start-skip in tree-sitter modes (bug#59690) 2022-12-03 14:49:38 -08:00
vera-mode.el
verilog-mode.el ; Fix typos 2022-11-20 12:59:39 +01:00
vhdl-mode.el
which-func.el ; lisp/progmodes/which-func.el: Mark emacs-devel as maintainer. 2022-11-25 15:04:12 +01:00
xref.el * lisp/progmodes/xref.el (xref--outdated-p): Fix broken docstring. 2022-11-28 03:07:15 +02:00
xscheme.el