diff options
author | Yuan Fu <casouri@gmail.com> | 2023-03-01 13:55:53 -0800 |
---|---|---|
committer | Yuan Fu <casouri@gmail.com> | 2023-03-01 14:07:01 -0800 |
commit | 6b2720778dc9531c0157bc7e773d2011bdf905e3 (patch) | |
tree | 795ff38380df607c1a6c06b7699098d1e6f189f2 /lisp/emacs-lisp/lisp-mode.el | |
parent | db50545e3e9cd51dd8e6ad93034dc48d45b705e2 (diff) | |
download | emacs-6b2720778dc9531c0157bc7e773d2011bdf905e3.tar.gz emacs-6b2720778dc9531c0157bc7e773d2011bdf905e3.tar.bz2 emacs-6b2720778dc9531c0157bc7e773d2011bdf905e3.zip |
Improve tree-sitter's prev-sibling indent anchor
Now it handles the case where NODE is nil when indenting an empty
line: it tries to get the previous sibling nonetheless.
* lisp/progmodes/c-ts-mode.el (c-ts-mode--anchor-prev-sibling):
* lisp/treesit.el (treesit-simple-indent-presets): Add an or form to
handle more cases.
Diffstat (limited to 'lisp/emacs-lisp/lisp-mode.el')
0 files changed, 0 insertions, 0 deletions