]> git.eshelyaron.com Git - emacs.git/commit
Allow tree-sitter indent offset to be a variable
authorYuan Fu <casouri@gmail.com>
Sun, 6 Nov 2022 01:32:01 +0000 (18:32 -0700)
committerYuan Fu <casouri@gmail.com>
Sun, 6 Nov 2022 01:32:01 +0000 (18:32 -0700)
commit076a25810127cb8c56ff0f5272a3d8b98192ee77
tree277c6a8eb8d59ee9b95f16f0bc025e2760b0f6c8
parentf847ecc40bc768d97ba57083fd669ca0104e500f
Allow tree-sitter indent offset to be a variable

* doc/lispref/modes.texi (Parser-based Indentation): Update manual.
* lisp/progmodes/js.el (js--treesit-indent-rules): Change all
occurance of ,js-indent-level to js-indent-level.

* lisp/progmodes/ts-mode.el (ts-mode--indent-rules): Change all
occurance of ,ts-mode-indent-offset to ts-mode-indent-offset.
* lisp/treesit.el (treesit-simple-indent-rules): Change docstring.
(treesit-simple-indent): Allow offset to be a variable.
doc/lispref/modes.texi
lisp/progmodes/js.el
lisp/progmodes/ts-mode.el
lisp/treesit.el