Files
emacs/lisp
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
..
2023-09-17 16:49:21 +02:00
2023-09-16 07:36:49 -04:00
2023-09-02 04:33:44 -04:00
2023-09-09 04:32:45 -04:00
2023-08-21 18:23:11 -07:00
2023-09-02 18:57:11 +02:00
2023-08-26 10:54:43 +03:00
2023-08-21 18:23:12 -07:00
2023-09-09 04:33:47 -04:00
2023-08-27 21:45:30 +02:00
2023-09-09 04:32:45 -04:00
2023-09-09 04:32:45 -04:00
2023-08-04 03:17:49 -04:00
2023-08-27 21:45:30 +02:00
2023-09-02 04:33:44 -04:00
2023-09-09 04:32:45 -04:00
2023-09-09 04:33:47 -04:00
2023-09-09 04:32:45 -04:00
2023-08-16 16:55:38 +02:00
2023-07-26 17:30:21 +03:00
2023-09-11 02:16:59 +02:00
2023-09-16 07:36:49 -04:00
2023-09-16 07:36:49 -04:00
2023-09-10 09:53:47 +02:00
2023-09-16 07:36:49 -04:00
2023-07-07 10:00:56 +08:00
2023-09-02 09:30:05 +08:00
2023-08-27 14:47:14 +02:00
2023-08-17 08:45:57 +08:00
2023-09-17 16:49:21 +02:00
2023-08-27 21:45:30 +02:00

This directory contains source code for the parts of Emacs that are
written in Emacs Lisp.  *.el files are Emacs Lisp source, and the
corresponding *.elc files are byte-compiled versions.  Byte-compiled
files are architecture-independent.

The term subdirectory contains Lisp files that customize Emacs for
certain terminal types.  When Emacs starts, it checks the TERM
environment variable to get the terminal type and loads
'term/${TERM}.el' if it exists.

The other subdirectories hold Lisp packages grouped by their general
purpose.