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

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

[nongnu] elpa/typescript-mode e82a4d2527 170/222: Add a new indentation


From: ELPA Syncer
Subject: [nongnu] elpa/typescript-mode e82a4d2527 170/222: Add a new indentation test case that triggers an infinite loop.
Date: Sun, 6 Feb 2022 16:59:30 -0500 (EST)

branch: elpa/typescript-mode
commit e82a4d252715a264f7b0ae8d1ef47a37112110a0
Author: Louis-Dominique Dubeau <ldd@lddubeau.com>
Commit: Louis-Dominique Dubeau <ldd@lddubeau.com>

    Add a new indentation test case that triggers an infinite loop.
---
 test-files/indentation-reference-document.ts | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/test-files/indentation-reference-document.ts 
b/test-files/indentation-reference-document.ts
index 60b3296497..96144faa72 100644
--- a/test-files/indentation-reference-document.ts
+++ b/test-files/indentation-reference-document.ts
@@ -717,3 +717,10 @@ const q =
 const blip999 = (window.location.href === "fnord" ?
     "a" :
     "b");
+
+// The following case is purposely not correct TS code. It tests against an
+// infinite loop that would occur when the mode was asked to indent such
+// incorrect syntax.
+if (true) {
+    .bleh();
+}



reply via email to

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