emacs/test/src
Yuan Fu 9e70acea67
Fix tree-sitter embedded parser range
If a host parser has some ranges, and an embedded parser also
has some ranges, the final range used by the embedded parser
should be an intersection of the two.  This patch adds this
logic.

* lisp/treesit.el (treesit--range-verbose): New variable.
(treesit--intersect-ranges):
(treesit--set-embed-ranges): New function.
(treesit--update-ranges-non-local):
(treesit--update-ranges-local): Use the new functions.
* test/src/treesit-tests.el:
(treesit-intersect-ranges): New test.
2026-04-27 02:14:49 -07:00
..
comp-resources Fix 'comp--func-unique-in-cu-p' to match docstring 2026-03-12 09:08:08 +01:00
emacs-module-resources Fix signal calls where the data argument is not a list 2026-03-10 00:13:31 -04:00
lread-resources Make force-load-doc-strings work again 2022-08-07 10:25:03 +02:00
regex-resources * src/regex-emacs.c (analyze_first): Fix incorrect optimization 2023-09-27 13:29:50 -04:00
syntax-resources Enhance syntax-tests.el to test nestable comments (Lisp style) 2020-11-17 16:51:49 +00:00
alloc-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
buffer-tests.el More tests for edit functions, buffers, and markers. 2026-02-25 18:10:05 -05:00
callint-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
callproc-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
casefiddle-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
category-tests.el Category/charset/coding + char-table tests. 2026-02-25 17:23:46 -05:00
character-tests.el Tests for primitives from the character.c module. 2026-02-25 19:41:05 -05:00
charset-tests.el * test/src/charset-tests.el (charset-tests-define-charset): New. 2026-03-21 18:42:01 +01:00
chartab-tests.el Category/charset/coding + char-table tests. 2026-02-25 17:23:46 -05:00
cmds-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
coding-tests.el Tests for primitives in coding.c and charset.c. 2026-02-25 19:41:05 -05:00
comp-tests.el Fix 'comp--func-unique-in-cu-p' to match docstring 2026-03-12 09:08:08 +01:00
data-tests.el ; * test/src/data-tests.el (data-tests-native-comp-unit): Fix test. 2026-02-27 15:29:16 +02:00
decompress-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
doc-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
editfns-tests.el More tests for edit functions, buffers, and markers. 2026-02-25 18:10:05 -05:00
emacs-module-tests.el Support Elisp debugging and backtraces in code called by modules 2026-04-26 15:20:28 +03:00
emacs-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
eval-tests.el Repair another test bollixed by aggressive optimization. 2026-02-25 20:51:21 -05:00
fileio-tests.el Tesrts for the portable primitives in fileio.c. 2026-02-25 19:54:11 -05:00
filelock-tests.el test subdirectory: Use new error-API 2026-03-10 10:48:22 -04:00
floatfns-tests.el Complete the test set for floatfns,c. 2026-02-25 20:18:31 -05:00
fns-tests.el More correctness tesrs for orinitives from fns.c. 2026-02-25 18:25:58 -05:00
font-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
image-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
indent-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
inotify-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
json-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
keyboard-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
keymap-tests.el More test coverage improvements. 2026-02-25 17:06:50 -05:00
lcms-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
lread-tests.el Tests for the lreaf.c amd print.c primitives. 2026-02-25 19:03:02 -05:00
marker-tests.el More tests for edit functions, buffers, and markers. 2026-02-25 18:10:05 -05:00
minibuf-tests.el More test coverage improvements. 2026-02-25 17:06:50 -05:00
print-tests.el Tests for the lreaf.c amd print.c primitives. 2026-02-25 19:03:02 -05:00
process-tests.el test subdirectory: Use new error-API 2026-03-10 10:48:22 -04:00
profiler-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
regex-emacs-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
search-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
sqlite-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
syntax-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
terminal-tests.el Add predicate for initial_terminal 2026-03-26 15:19:56 +01:00
textprop-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
thread-tests.el Fix signal calls where the data argument is not a list 2026-03-10 00:13:31 -04:00
timefns-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
treesit-tests.el Fix tree-sitter embedded parser range 2026-04-27 02:14:49 -07:00
undo-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
xdisp-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
xfaces-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
xml-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00