Subject: 29.0.60; [PATCH] Add class_body rule to typescript-ts-mode

From: Theodor Thornhill <[email-masked]>
Date: Tue, 29 Nov 2022 16:15:15 +0100

Hi all!

A tiny patch to add indentation for class_body.

Feel free to apply, Yuan or Eli :-)

Theo

>From 4a33766aa96c955cd0dcd7b6af9dfa0be0a928e9 Mon Sep 17 00:00:00 2001
From: Theodor Thornhill <[email-masked]>
Date: Tue, 29 Nov 2022 16:12:18 +0100
Subject: [PATCH] Add class_body indentation for typescript

* 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 6c926a4e3e..0559ef8f25 100644
--- a/lisp/progmodes/typescript-ts-mode.el
+++ b/lisp/progmodes/typescript-ts-mode.el
@@ -79,6 +79,7 @@ typescript-ts-mode--indent-rules
      ((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)
 
-- 
2.34.1