From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#59680: 29.0.60; [PATCH] Add class_body rule to typescript-ts-mode Date: Tue, 29 Nov 2022 16:15:15 +0100 Message-ID: <87edtlaj24.fsf@thornhill.no> Reply-To: Theodor Thornhill Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5811"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, eliz@gnu.org, jostein@kjonigsen.net To: 59680@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 29 16:16:32 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p02LX-0001Ja-Ft for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Nov 2022 16:16:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p02L7-0002O3-Bj; Tue, 29 Nov 2022 10:16:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p02L5-0002NX-DR for bug-gnu-emacs@gnu.org; Tue, 29 Nov 2022 10:16:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p02L5-0007Nb-3r; Tue, 29 Nov 2022 10:16:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p02L3-0003Wa-Rl; Tue, 29 Nov 2022 10:16:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: casouri@gmail.com, eliz@gnu.org, jostein@kjonigsen.net, bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Nov 2022 15:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59680 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: casouri@gmail.com, eliz@gnu.org, jostein@kjonigsen.net Original-Received: via spool by submit@debbugs.gnu.org id=B.166973492513535 (code B ref -1); Tue, 29 Nov 2022 15:16:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Nov 2022 15:15:25 +0000 Original-Received: from localhost ([127.0.0.1]:54683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p02KT-0003WF-7R for submit@debbugs.gnu.org; Tue, 29 Nov 2022 10:15:25 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:35978) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p02KR-0003W9-BT for submit@debbugs.gnu.org; Tue, 29 Nov 2022 10:15:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p02KR-0002Jg-01 for bug-gnu-emacs@gnu.org; Tue, 29 Nov 2022 10:15:23 -0500 Original-Received: from out2.migadu.com ([2001:41d0:2:aacc::]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p02KN-0007Gl-BA for bug-gnu-emacs@gnu.org; Tue, 29 Nov 2022 10:15:22 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1669734916; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=mKN6STEBmd7MhQ7Kfc8gU2cocX9erMkOc+Q3CKhKXcQ=; b=YjOZ6naHLLuM5/Ao4EejeRYRR1wnLKpUeQFHygx1OMKTtGfortF1oD2GBRfKozaxUDFeqb PvyDnVE09BlBnhH+y6csmlmh51D8sbZ8p0R3cGAEMe+mo10q1EJNfmGPpOyosUUZavaWzF tQQZ7sD8lq0WQ8iEBrV3gPeBRbjdERPCjNaX7wzW146MfwDP7ZhMcOXuuk54P0HzGqluSw g5HiCklBP8sKbNR40KzXD1oOUsY3uZIS6WQdxHV4iXW7i9xzS1yHKxRJ4okCtZhvdrXCB+ QwlF09JUxLB1z1oB+lm60deWol9Xmy7rYk3ISif0ZrWdFgVPXTeoWBLZ5zpjGA== X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=2001:41d0:2:aacc::; envelope-from=theo@thornhill.no; helo=out2.migadu.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:249409 Archived-At: --=-=-= Content-Type: text/plain Hi all! A tiny patch to add indentation for class_body. Feel free to apply, Yuan or Eli :-) Theo --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Add-class_body-indentation-for-typescript.patch >From 4a33766aa96c955cd0dcd7b6af9dfa0be0a928e9 Mon Sep 17 00:00:00 2001 From: Theodor Thornhill 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 --=-=-=--