]> git.eshelyaron.com Git - emacs.git/commitdiff
Add missing indentation rule for rust-ts-mode (Bug#62109)
authorRandy Taylor <dev@rjt.dev>
Sat, 11 Mar 2023 01:56:04 +0000 (20:56 -0500)
committerYuan Fu <casouri@gmail.com>
Sat, 11 Mar 2023 23:52:42 +0000 (15:52 -0800)
* lisp/progmodes/rust-ts-mode.el (rust-ts-mode--indent-rules): Add
missing rule.

lisp/progmodes/rust-ts-mode.el

index 5a4f4dc25c02046e1b28efd3036913b4608d3e17..be06acde3e36bceda9c784180aa4e26c9a7fb0b0 100644 (file)
@@ -91,6 +91,7 @@
      ((parent-is "let_declaration") parent-bol rust-ts-mode-indent-offset)
      ((parent-is "macro_definition") parent-bol rust-ts-mode-indent-offset)
      ((parent-is "parameters") parent-bol rust-ts-mode-indent-offset)
+     ((parent-is "struct_pattern") parent-bol rust-ts-mode-indent-offset)
      ((parent-is "token_tree") parent-bol rust-ts-mode-indent-offset)
      ((parent-is "use_list") parent-bol rust-ts-mode-indent-offset)))
   "Tree-sitter indent rules for `rust-ts-mode'.")