[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/haskell-tng-mode c211672 174/385: indentation for hanging
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/haskell-tng-mode c211672 174/385: indentation for hanging type definition |
Date: |
Tue, 5 Oct 2021 23:59:25 -0400 (EDT) |
branch: elpa/haskell-tng-mode
commit c21167223a8da724781cb37c174ca82ec31aa8e1
Author: Tseen She <ts33n.sh3@gmail.com>
Commit: Tseen She <ts33n.sh3@gmail.com>
indentation for hanging type definition
---
haskell-tng-smie.el | 1 +
test/src/indentation.hs.append.indent | 4 ++--
test/src/indentation.hs.insert.indent | 4 ++--
test/src/indentation.hs.reindent | 4 ++--
4 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/haskell-tng-smie.el b/haskell-tng-smie.el
index fbbf7fb..751d5fc 100644
--- a/haskell-tng-smie.el
+++ b/haskell-tng-smie.el
@@ -238,6 +238,7 @@ information, to aid in the creation of new rules."
"\\case" ;; LambdaCase
"where" "let" "do" "of"))))
2)
+ ("::" 5)
("," (smie-rule-separator method))
((or "SYMID")
(if (smie-rule-hanging-p) 2 (smie-rule-parent)))
diff --git a/test/src/indentation.hs.append.indent
b/test/src/indentation.hs.append.indent
index 9bcf547..4218a47 100644
--- a/test/src/indentation.hs.append.indent
+++ b/test/src/indentation.hs.append.indent
@@ -251,7 +251,7 @@ v
v
types2 ::
-v
+1 v
a
v 1
-> b
@@ -261,7 +261,7 @@ v 1 2
v 1 2
types3 ::
-v
+1 v
Monad m
v 1
=> a
diff --git a/test/src/indentation.hs.insert.indent
b/test/src/indentation.hs.insert.indent
index c9deb1b..34dc432 100644
--- a/test/src/indentation.hs.insert.indent
+++ b/test/src/indentation.hs.insert.indent
@@ -251,7 +251,7 @@ v
v
types2 ::
-v 1
+1 v
a
2 1 v
-> b
@@ -261,7 +261,7 @@ v 1 2
v 1 2
types3 ::
-v 1
+1 v
Monad m
3 1 2 v
=> a
diff --git a/test/src/indentation.hs.reindent b/test/src/indentation.hs.reindent
index 24f513e..68d3d4b 100644
--- a/test/src/indentation.hs.reindent
+++ b/test/src/indentation.hs.reindent
@@ -252,7 +252,7 @@ v
v 1
types2 ::
-v 1
+2 1 v
a
v 1 2
-> b
@@ -262,7 +262,7 @@ v 1 2
v 2 1
types3 ::
-v 1
+2 1 v
Monad m
2 1 v
=> a
- [nongnu] elpa/haskell-tng-mode 7f9afd2 159/385: list indentation, (continued)
- [nongnu] elpa/haskell-tng-mode 7f9afd2 159/385: list indentation, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 6e70344 165/385: duplicate ; tokens to be used as terminators, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode ab5252b 169/385: rearrange alts, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode e1aba33 168/385: fix a layout bug in lists and records, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 2c6c772 150/385: better WLDO indentation, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 3f54673 155/385: don't fontify toplevel, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 32175c0 158/385: thots, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 8c2e3f7 157/385: better symid indentation, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode bc5c827 160/385: tuple indentation, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode e0acc42 156/385: better tasty error detection, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode c211672 174/385: indentation for hanging type definition,
ELPA Syncer <=
- [nongnu] elpa/haskell-tng-mode ef7f335 171/385: note stack compatibility, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 86bcd98 175/385: constraint indentation, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode e1c0f0a 179/385: allow indentation option to be tested, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 1cceb64 182/385: cleaner tests, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode b1122e4 188/385: allow users to use unsupported build tools, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode bd4ff6f 192/385: standardise on naming convention:, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 3b5ac7f 190/385: package-lint, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode a227f7e 200/385: blank lines end a run of type definitions, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode e4ead98 201/385: thots on prettify-symbol, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 387aa18 203/385: more efficient layout algorithm, ELPA Syncer, 2021/10/06