1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 16:21:07 -08:00
emacs/test/src
Danny Freeman b892da5f61
Offset ranges before applying embedded tree-sitter parser
This feature would allow treesitter major modes to easily specify
offsets when using embeded parsers.  A potential use case for this is
javascript template strings, when we want to apply a different parser
to the string's contents, but do not want to include the template
string's delimiters.

* lisp/treesit.el
(treesit-query-range): Accept an optional offest arg, apply the offset
to all returned ranges.
(treesit-range-rules): Accept an optional :offset keyword arg to adjust
ranges an embded parser is applied to.
(treesit-update-ranges): Forward optional :offset setting from
`treesit-range-rules' to `treesit-query-rang'.
* test/lisp/treesit-tests.el
(treesit-range-offset): Tests the new offset functionality.
2023-09-17 21:12:56 -07:00
..
comp-resources Fix native compilation in dynamically bound files. 2023-07-19 11:26:11 +00:00
emacs-module-resources ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
lread-resources Make force-load-doc-strings work again 2022-08-07 10:25:03 +02:00
regex-resources
syntax-resources
alloc-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
buffer-tests.el (report_overlay_modification): Fix bug#65929 2023-09-13 18:49:55 -04:00
callint-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
callproc-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
casefiddle-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
character-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
charset-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
chartab-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
cmds-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
coding-tests.el Fix encoding with 'utf-8-auto' 2023-01-12 16:36:35 +02:00
comp-tests.el ; Silence byte-compiler 2023-08-20 20:05:26 +02:00
data-tests.el (Fmake_local_variable): Fix bug#65209 2023-08-18 19:22:17 -04:00
decompress-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
doc-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
editfns-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
emacs-module-tests.el Use new ERT skip-when macro in tests 2023-09-04 18:25:18 +02:00
emacs-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
eval-tests.el Disallow creation of circular variable alias chains 2023-04-14 19:34:23 +02:00
fileio-tests.el Use new ERT skip-when macro in tests 2023-09-04 18:25:18 +02:00
filelock-tests.el Use new ERT skip-when macro in tests 2023-09-04 18:25:18 +02:00
floatfns-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
fns-tests.el Correct the handling of symbols with position in equal 2023-09-04 12:51:24 +00:00
font-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
image-tests.el Use new ERT skip-when macro in tests 2023-09-04 18:25:18 +02:00
indent-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
inotify-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
json-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
keyboard-tests.el Skip hanging tests on Cygwin (bug#65325) 2023-08-19 14:21:34 -04:00
keymap-tests.el Add tests for Bug#62207 2023-03-18 10:37:15 +01:00
lcms-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
lread-tests.el Merge from origin/emacs-29 2023-05-26 07:04:03 -04:00
marker-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
minibuf-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
print-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
process-tests.el Use new ERT skip-when macro in tests 2023-09-04 18:25:18 +02:00
regex-emacs-tests.el (mutually_exclusive_p): Fix the regression from commit 6fad73d7cc 2023-09-15 14:53:24 -04:00
search-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
sqlite-tests.el Fix loading SQLite extensions 2023-05-20 15:43:44 +03:00
syntax-tests.el ; * test/src/syntax-tests.el (syntax-char-syntax): remove junk 2023-08-14 17:03:44 +02:00
textprop-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
thread-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
timefns-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
treesit-tests.el Offset ranges before applying embedded tree-sitter parser 2023-09-17 21:12:56 -07:00
undo-tests.el undo-tests.el: Tests for bug#60467 2023-01-13 17:43:31 -05:00
xdisp-tests.el Don't mutate constants in tests 2023-05-13 14:31:00 +02:00
xfaces-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
xml-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00