[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/haskell-tng-mode a7a90ea 028/385: fixup! improve the multi
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/haskell-tng-mode a7a90ea 028/385: fixup! improve the multiline font macro |
Date: |
Tue, 5 Oct 2021 23:58:55 -0400 (EDT) |
branch: elpa/haskell-tng-mode
commit a7a90ea65485589404e4c02d540ae902984fa575
Author: Tseen She <ts33n.sh3@gmail.com>
Commit: Tseen She <ts33n.sh3@gmail.com>
fixup! improve the multiline font macro
---
haskell-tng-font-lock.el | 8 +-------
haskell-tng-util.el | 6 ++++++
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/haskell-tng-font-lock.el b/haskell-tng-font-lock.el
index 1707ffe..790ef30 100644
--- a/haskell-tng-font-lock.el
+++ b/haskell-tng-font-lock.el
@@ -232,13 +232,7 @@ defaults for FIND."
(rx symbol-start "::" symbol-end)
(rx symbol-start "::" symbol-end (group (+ anything)))
haskell-tng:paren-close
- haskell-tng:font:explicit-type:indent)
-
-(defun haskell-tng:font:explicit-type:indent ()
- "Indentation closing the previous symbol."
- (save-excursion
- (forward-symbol -1)
- (haskell-tng:indent-close)))
+ haskell-tng:indent-close-previous)
(haskell-tng:font:multiline topdecl
(rx line-start (| "data" "newtype" "class" "instance") symbol-end)
diff --git a/haskell-tng-util.el b/haskell-tng-util.el
index 3a19d3f..e4737e8 100644
--- a/haskell-tng-util.el
+++ b/haskell-tng-util.el
@@ -31,5 +31,11 @@
(throw 'closed (point))))
nil))))
+(defun haskell-tng:indent-close-previous ()
+ "Indentation closing the previous symbol."
+ (save-excursion
+ (forward-symbol -1)
+ (haskell-tng:indent-close)))
+
(provide 'haskell-tng-util)
;;; haskell-tng-util.el ends here
- [nongnu] elpa/haskell-tng-mode 595bd44 034/385: type families, (continued)
- [nongnu] elpa/haskell-tng-mode 595bd44 034/385: type families, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode 77d6ec5 019/385: cleaned up multiline explicit types, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode fa32b46 037/385: finally caught the bug in anchor pre/post resetting, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode f2ce737 038/385: neutral, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode 95ab59c 014/385: multiline type matching seems to work, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode 85272cb 029/385: fixup! fixup! improve the multiline font macro, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode 00f7d84 002/385: simplify names, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode 111396f 004/385: converted many font-face rules to the rx DSL, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode 6f8258c 009/385: thinking about multiline, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode 5536d23 025/385: all font locks use the new macro, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode a7a90ea 028/385: fixup! improve the multiline font macro,
ELPA Syncer <=
- [nongnu] elpa/haskell-tng-mode b9bc414 027/385: improve the multiline font macro, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode ea77bb2 017/385: fixup! almost there, regions not being expanded, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode 2b82b2f 022/385: fixup! fixup! multiline topdecl type sections, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode 46abfc4 035/385: getting closer to good types in imports, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode c3d4e70 031/385: don't reinvent standard tools, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode 7c2dedb 043/385: use pyenv when running cask, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode 2f04c01 051/385: starting work on semicolon inference, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode a4a664b 056/385: layout inference, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode d33d146 060/385: [ci skip] start to refactor layout out of lexer, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode 12c7148 040/385: leave fontification in comments and strings, ELPA Syncer, 2021/10/05