diff options
author | Theodor Thornhill <theo@thornhill.no> | 2023-02-18 23:10:13 +0100 |
---|---|---|
committer | Theodor Thornhill <theo@thornhill.no> | 2023-02-19 20:48:06 +0100 |
commit | 2e6093b425e21551806abed746765631a00942d6 (patch) | |
tree | 13fa4b3e2cde53136fc2999a076e515eebdca2b8 /test/lisp/progmodes/c-ts-mode-resources | |
parent | c544df4fa3f217d0039bb9cb38c809c830558c25 (diff) | |
download | emacs-2e6093b425e21551806abed746765631a00942d6.tar.gz emacs-2e6093b425e21551806abed746765631a00942d6.tar.bz2 emacs-2e6093b425e21551806abed746765631a00942d6.zip |
Adjust jsx indentation
We can use the fact that 'treesit-indent-1' uses 'treesit-node-on'
when on a whitespace to set the actual current node as parent. Now we
can correctly indent the 'jsx_text' nodes. We also add some more
electric-indent-chars so that auto-indenting of jsx behaves a little
more fluently.
* lisp/progmodes/js.el (js--treesit-indent-rules): Add new rules.
(js-ts-mode): Add more indent-chars.
* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--indent-rules): Add new rules.
* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-base-mode): Add more indent-chars and layout rules.
Diffstat (limited to 'test/lisp/progmodes/c-ts-mode-resources')
0 files changed, 0 insertions, 0 deletions