diff options
author | Yuan Fu <casouri@gmail.com> | 2023-01-15 00:16:58 -0800 |
---|---|---|
committer | Yuan Fu <casouri@gmail.com> | 2023-01-15 01:11:37 -0800 |
commit | 189d976dbaed9067b21dbc372c52be104ef33417 (patch) | |
tree | 7e1d2b3457c47eafd04234ba37ef0e0a1ab14b68 /lisp/emacs-lisp | |
parent | c78e19d99c01660284c6c4d58a2e98e1ba93fb6d (diff) | |
download | emacs-189d976dbaed9067b21dbc372c52be104ef33417.tar.gz emacs-189d976dbaed9067b21dbc372c52be104ef33417.tar.bz2 emacs-189d976dbaed9067b21dbc372c52be104ef33417.zip |
Fix statement indent for c-ts-mode (bug#59686) (bug#60280)
Instead of trying to figure out the correct anchor, now we just count
the layers of {} blocks between the node and the root node.
* lisp/progmodes/c-ts-mode.el:
(c-ts-mode--indent-styles): Use new offset functions
c-ts-mode--close-bracket-offset and c-ts-mode--statement-offset.
(c-ts-mode--bracket-children-anchor): Remove function.
(c-ts-mode--top-level-label-matcher): New variable.
(c-ts-mode--statement-offset)
(c-ts-mode--close-bracket-offset): New offset functions.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions