emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/typescript-mode c2d72b7d81 116/222: Fix unwanted indentati


From: ELPA Syncer
Subject: [nongnu] elpa/typescript-mode c2d72b7d81 116/222: Fix unwanted indentation after non-keyword "each"
Date: Sun, 6 Feb 2022 16:59:23 -0500 (EST)

branch: elpa/typescript-mode
commit c2d72b7d816a0ede209c507b1800f98b9d53559b
Author: Valentin Robert <valentin.robert.42@gmail.com>
Commit: Louis-Dominique Dubeau <ldd@lddubeau.com>

    Fix unwanted indentation after non-keyword "each"
    
    Fixes #83
---
 test-files/indentation-reference-document.ts | 3 +++
 typescript-mode.el                           | 3 +--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/test-files/indentation-reference-document.ts 
b/test-files/indentation-reference-document.ts
index 07ede0318f..b053b3c83b 100644
--- a/test-files/indentation-reference-document.ts
+++ b/test-files/indentation-reference-document.ts
@@ -495,3 +495,6 @@ function blipblop(): void {
         const q = 1;
     }
 }
+
+container.each(x => x)
+something() // No reason for this to be indented! (cf. issue #83)
diff --git a/typescript-mode.el b/typescript-mode.el
index 757ac94712..818addd9c3 100644
--- a/typescript-mode.el
+++ b/typescript-mode.el
@@ -2003,8 +2003,7 @@ This performs fontification according to 
`typescript--class-styles'."
 
 (defconst typescript--possibly-braceless-keyword-re
   (typescript--regexp-opt-symbol
-   '("catch" "do" "else" "finally" "for" "if" "try" "while" "with"
-     "each"))
+   '("catch" "do" "else" "finally" "for" "if" "try" "while" "with"))
   "Regexp matching keywords optionally followed by an opening brace.")
 
 (defconst typescript--indent-keyword-re



reply via email to

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