summaryrefslogtreecommitdiff
path: root/lisp/progmodes/go-ts-mode.el
diff options
context:
space:
mode:
authorYuan Fu <casouri@gmail.com>2023-01-25 23:47:27 -0800
committerYuan Fu <casouri@gmail.com>2023-01-25 23:47:27 -0800
commitcdf74254ffa2c53612f6d985e3774b51233fbd49 (patch)
treed1bc32bc8f622bce15efa9335187b10411d4cfed /lisp/progmodes/go-ts-mode.el
parent4bd06ce2a9fa1601aff5a5fcab7411e5fce20d28 (diff)
downloademacs-cdf74254ffa2c53612f6d985e3774b51233fbd49.tar.gz
emacs-cdf74254ffa2c53612f6d985e3774b51233fbd49.tar.bz2
emacs-cdf74254ffa2c53612f6d985e3774b51233fbd49.zip
Fix indentation for c-ts-mode (bug#61026)
Fix indentation for things like while (true) if (true) { puts ("Hello"); } Note that the outer while loop omits brackets. * lisp/progmodes/c-ts-mode.el: (c-ts-mode--statement-offset-post-processr): New variable. (c-ts-mode--statement-offset): Use the new function. (c-ts-mode--fix-bracketless-indent): New function. (c-ts-base-mode): Use the new function. * test/lisp/progmodes/c-ts-mode-resources/indent.erts: New tests.
Diffstat (limited to 'lisp/progmodes/go-ts-mode.el')
0 files changed, 0 insertions, 0 deletions