unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#59680: 29.0.60; [PATCH] Add class_body rule to typescript-ts-mode
@ 2022-11-29 15:15 Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-12-09 21:31 ` Yuan Fu
  0 siblings, 1 reply; 2+ messages in thread
From: Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-11-29 15:15 UTC (permalink / raw)
  To: 59680; +Cc: casouri, eliz, jostein

[-- Attachment #1: Type: text/plain, Size: 102 bytes --]


Hi all!

A tiny patch to add indentation for class_body.

Feel free to apply, Yuan or Eli :-)

Theo


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Add-class_body-indentation-for-typescript.patch --]
[-- Type: text/x-diff, Size: 1138 bytes --]

From 4a33766aa96c955cd0dcd7b6af9dfa0be0a928e9 Mon Sep 17 00:00:00 2001
From: Theodor Thornhill <theo@thornhill.no>
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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#59680: 29.0.60; [PATCH] Add class_body rule to  typescript-ts-mode
  2022-11-29 15:15 bug#59680: 29.0.60; [PATCH] Add class_body rule to typescript-ts-mode Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-12-09 21:31 ` Yuan Fu
  0 siblings, 0 replies; 2+ messages in thread
From: Yuan Fu @ 2022-12-09 21:31 UTC (permalink / raw)
  To: Theodor Thornhill; +Cc: eliz, jostein, 59680-done


Theodor Thornhill <theo@thornhill.no> writes:

> Hi all!
>
> A tiny patch to add indentation for class_body.
>
> Feel free to apply, Yuan or Eli :-)
>
> Theo

Applied, thanks!

Yuan





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-12-09 21:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-29 15:15 bug#59680: 29.0.60; [PATCH] Add class_body rule to typescript-ts-mode Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-09 21:31 ` Yuan Fu

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).