1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-16 08:10:43 -08:00
emacs/lisp/textmodes
Yuan Fu c26fe45cb8
Fix treesit-query-capture
Before this change Ftreesit_query_capture doesn't convert character
position to byte position for BEG and END parameters.  I observed
fontification issue in css files but couldn't figure out why, now I
know :-)

I decide to keep treesit--font-lock-query-expand-range, since it might
provide a escape hatch for problems we discover in the future, and it
should be very cheap so no downside of keeping it.

* lisp/textmodes/css-mode.el (css-ts-mode): Stop setting
treesit--font-lock-query-expand-range.
* lisp/treesit.el (treesit--font-lock-query-expand-range): Update
docstring.
* src/treesit.c (Ftreesit_query_capture): Convert BEG and END to byte
position.  Also added parentheses wround "beg_byte - visible_beg" in
the call to ts_query_cursor_set_byte_range (i.e., style change).
2022-12-05 19:56:47 -08:00
..
artist.el
bib-mode.el
bibtex-style.el
bibtex.el
conf-mode.el
css-mode.el Fix treesit-query-capture 2022-12-05 19:56:47 -08:00
dns-mode.el
emacs-authors-mode.el
emacs-news-mode.el
enriched.el
fill.el
flyspell.el
glyphless-mode.el
ispell.el
less-css-mode.el
makeinfo.el
mhtml-mode.el
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
reftex-dcr.el
reftex-global.el
reftex-index.el
reftex-parse.el
reftex-ref.el
reftex-sel.el
reftex-toc.el
reftex-vars.el
reftex.el ; Fix typos (don't abbreviate "with" or "without") 2022-12-01 16:36:09 +01:00
remember.el
rst.el
sgml-mode.el
string-edit.el
table.el
tex-mode.el
texinfmt.el
texinfo.el
texnfo-upd.el
text-mode.el
tildify.el
two-column.el
underline.el
word-wrap-mode.el