mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-09 15:50:40 -08:00
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). |
||
|---|---|---|
| .. | ||
| artist.el | ||
| bib-mode.el | ||
| bibtex-style.el | ||
| bibtex.el | ||
| conf-mode.el | ||
| css-mode.el | ||
| 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 | ||
| 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 | ||