]> git.eshelyaron.com Git - emacs.git/commit
Fix some cases of incomplete code's indentation [c/c++-ts-mode]
authorDmitry Gutov <dgutov@yandex.ru>
Sun, 9 Apr 2023 23:58:46 +0000 (02:58 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Sun, 9 Apr 2023 23:58:46 +0000 (02:58 +0300)
commitdb8f207e52fc969e0dcf30e197bcfaa4fa1d2b6e
tree49cb24a387626ba9d8592d999933700317517607
parent589959fb09d8a8f60179e1cceca4c3777b8c7719
Fix some cases of incomplete code's indentation [c/c++-ts-mode]

* lisp/progmodes/c-ts-mode.el (c-ts-base--before-indent): Try to
guess when the parse tree is incomplete, and provide a better node
to indent against (bug#62717).
(c-ts-base-mode): Set up advice for local treesit-indent-function.
lisp/progmodes/c-ts-mode.el
test/lisp/progmodes/c-ts-mode-resources/indent.erts