[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/haskell-tng-mode f99ca77 012/385: fixup! expand parens
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/haskell-tng-mode f99ca77 012/385: fixup! expand parens |
Date: |
Tue, 5 Oct 2021 23:58:51 -0400 (EDT) |
branch: elpa/haskell-tng-mode
commit f99ca777608ac4d8fe882f47e5c011dafecde3c6
Author: Tseen She <ts33n.sh3@gmail.com>
Commit: Tseen She <ts33n.sh3@gmail.com>
fixup! expand parens
---
haskell-tng-font-lock.el | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/haskell-tng-font-lock.el b/haskell-tng-font-lock.el
index 9883266..4529e27 100644
--- a/haskell-tng-font-lock.el
+++ b/haskell-tng-font-lock.el
@@ -173,10 +173,8 @@
Expand the region to include the opening parenthesis.
The caller loops until everything is opened."
(goto-char font-lock-beg)
- (let* ((scan (syntax-ppss))
- (open (nth 1 scan)))
- (when (and open
- (goto-char open)
+ (when-let (open (nth 1 (syntax-ppss)))
+ (when (and (goto-char open)
(looking-at "("))
;;(haskell-tng:debug-extend (point))
(setq font-lock-beg (point)))))
@@ -186,14 +184,12 @@ The caller loops until everything is opened."
Expand the region to include a closing parenthesis.
The caller loops until everything is closed."
(goto-char font-lock-end)
- (let* ((scan (syntax-ppss))
- (open (nth 1 scan)))
- (when (and open
- (goto-char open)
+ (when-let (open (nth 1 (syntax-ppss)))
+ (when (and (goto-char open)
(looking-at "(")
(goto-char font-lock-end)
(re-search-forward ")" (point-max) t))
- (haskell-tng:debug-extend (point))
+ ;;(haskell-tng:debug-extend (point))
(setq font-lock-end (point)))))
(defun haskell-tng:multiline-faces ()
- [nongnu] branch elpa/haskell-tng-mode created (now 55d8e69), ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode bf24329 001/385: going nova, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode aadf499 003/385: module fontification, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode c2a5b64 005/385: cleaner import fontification, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode f6ce55f 006/385: type detection has begun, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode 700524b 008/385: typo in keywords, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode 6ce5efb 007/385: moar type fontification, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode 7bc3218 010/385: extend types in parens, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode 52f0cb9 011/385: expand parens, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode f99ca77 012/385: fixup! expand parens,
ELPA Syncer <=
- [nongnu] elpa/haskell-tng-mode bd8f905 016/385: almost there, regions not being expanded, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode db064be 024/385: dank macro for font-lock extends/keyword, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode 639fc6c 018/385: multiline types and font-lock-multiline, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode cc739ad 020/385: multiline topdecl type sections, ELPA Syncer, 2021/10/05
- [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