branch: elpa/typescript-mode
commit e82a4d252715a264f7b0ae8d1ef47a37112110a0
Author: Louis-Dominique Dubeau <[email protected]>
Commit: Louis-Dominique Dubeau <[email protected]>

    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