emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 8de8f1dc051 6/7: Add class_body indentation for typescript (bug


From: Yuan Fu
Subject: emacs-29 8de8f1dc051 6/7: Add class_body indentation for typescript (bug#59680)
Date: Fri, 9 Dec 2022 19:46:45 -0500 (EST)

branch: emacs-29
commit 8de8f1dc05198ea9a1106ac2282acc9c93ee1ebd
Author: Theodor Thornhill <theo@thornhill.no>
Commit: Yuan Fu <casouri@gmail.com>

    Add class_body indentation for typescript (bug#59680)
    
    * lisp/progmodes/typescript-ts-mode.el
    (typescript-ts-mode--indent-rules): New indent rule.
---
 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 c4a5bd37e05..8c4364ecc5b 100644
--- a/lisp/progmodes/typescript-ts-mode.el
+++ b/lisp/progmodes/typescript-ts-mode.el
@@ -89,6 +89,7 @@ Argument LANGUAGE is either `typescript' or `tsx'."
      ((parent-is "object") parent-bol typescript-ts-mode-indent-offset)
      ((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 "arrow_function") parent-bol typescript-ts-mode-indent-offset)
      ((parent-is "parenthesized_expression") parent-bol 
typescript-ts-mode-indent-offset)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]