diff options
author | Theodor Thornhill <theo@thornhill.no> | 2023-02-14 20:53:55 +0100 |
---|---|---|
committer | Theodor Thornhill <theo@thornhill.no> | 2023-02-14 20:53:55 +0100 |
commit | accd88d55455b8c585b162242e6e4ede742afa99 (patch) | |
tree | f2b6d2c4ee31589a3c68c46826c342d239816661 /lisp/progmodes/js.el | |
parent | d97a38399678269e01e32e5b3da4d3d91144c433 (diff) | |
download | emacs-accd88d55455b8c585b162242e6e4ede742afa99.tar.gz |
Don't indent template_string contents (bug#61503)
* lisp/progmodes/js.el (js--treesit-indent-rules): Add new rule.
* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--indent-rules): Add new rule.
Diffstat (limited to 'lisp/progmodes/js.el')
-rw-r--r-- | lisp/progmodes/js.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index 05d69c314bb..1f08f09935b 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el @@ -3442,6 +3442,7 @@ This function is intended for use in `after-change-functions'." ((parent-is "arguments") parent-bol js-indent-level) ((parent-is "array") parent-bol js-indent-level) ((parent-is "formal_parameters") parent-bol js-indent-level) + ((parent-is "template_string") no-indent) ; Don't indent the string contents. ((parent-is "template_substitution") parent-bol js-indent-level) ((parent-is "object_pattern") parent-bol js-indent-level) ((parent-is "object") parent-bol js-indent-level) |