]> git.eshelyaron.com Git - emacs.git/commit
Remove tree-sitter-indent's integration with cc-mode
authorYuan Fu <casouri@gmail.com>
Thu, 27 Oct 2022 23:44:33 +0000 (16:44 -0700)
committerYuan Fu <casouri@gmail.com>
Fri, 28 Oct 2022 08:15:45 +0000 (01:15 -0700)
commit3a4406975338eb6dad9327b5d17f67a677114e6a
tree90c0fdb554fd012dbfca8dcc4f150d172e29bcdc
parentbb0a427e9d3c29c17c1b03773697989328f53056
Remove tree-sitter-indent's integration with cc-mode

Also minor improvement of tree-sitter-indent error messaging.

* lisp/progmodes/js.el (js--treesit-indent-rules): Fix it so it works
with the new presets (which expects regexps).
(js--treesit-cc-indent-rules): Remove variable.
(js-mode): Go back to js--treesit-indent-rules.
* lisp/treesit.el (treesit-indent): Don't report error message when
ANCHOR or OFFSET is nil: let treesit-simple-indent display the
message.
(treesit-simple-indent): Remove cc-mode integration.  Display error
message when no rules matches.
lisp/progmodes/js.el
lisp/treesit.el