]> git.eshelyaron.com Git - emacs.git/commit
Allow offset in tree-sitter indent rules to be functions
authorYuan Fu <casouri@gmail.com>
Sun, 15 Jan 2023 08:15:25 +0000 (00:15 -0800)
committerYuan Fu <casouri@gmail.com>
Sun, 15 Jan 2023 09:11:37 +0000 (01:11 -0800)
commitc78e19d99c01660284c6c4d58a2e98e1ba93fb6d
tree260b3e87d2afed08a9582fb585bbcf1ac9a8b9ba
parentd13a329acff37b37091e137e3b04669ab7aab9ae
Allow offset in tree-sitter indent rules to be functions

This is needed for fixing C indentation.  See next comment.

* doc/lispref/modes.texi (Parser-based Indentation): Update manual.
* lisp/treesit.el (treesit-simple-indent): Try evaluating OFFSET as a
function if it's not integer nor variable.
doc/lispref/modes.texi
lisp/treesit.el