[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 bcf6dd6e266 1/2: Add typescript-ts-mode indentation for interfa
From: |
Theodor Thornhill |
Subject: |
emacs-29 bcf6dd6e266 1/2: Add typescript-ts-mode indentation for interface bodies (bug#70023) |
Date: |
Thu, 28 Mar 2024 14:04:05 -0400 (EDT) |
branch: emacs-29
commit bcf6dd6e266222a293e359430afdf3a2dc18369c
Author: Noah Peart <noah.v.peart@gmail.com>
Commit: Theodor Thornhill <theo@thornhill.no>
Add typescript-ts-mode indentation for interface bodies (bug#70023)
* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--indent-rules): Add indentation rule for
interface bodies.
---
lisp/progmodes/typescript-ts-mode.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/lisp/progmodes/typescript-ts-mode.el
b/lisp/progmodes/typescript-ts-mode.el
index 7021f012dcd..9c4c388c6b1 100644
--- a/lisp/progmodes/typescript-ts-mode.el
+++ b/lisp/progmodes/typescript-ts-mode.el
@@ -124,6 +124,7 @@ Argument LANGUAGE is either `typescript' or `tsx'."
((parent-is "object_type") parent-bol typescript-ts-mode-indent-offset)
((parent-is "enum_body") parent-bol typescript-ts-mode-indent-offset)
((parent-is "class_body") parent-bol typescript-ts-mode-indent-offset)
+ ((parent-is "interface_body") parent-bol typescript-ts-mode-indent-offset)
((parent-is "arrow_function") parent-bol typescript-ts-mode-indent-offset)
((parent-is "parenthesized_expression") parent-bol
typescript-ts-mode-indent-offset)
((parent-is "binary_expression") parent-bol
typescript-ts-mode-indent-offset)