[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/haskell-tng-mode 6ae08ec 021/385: fixup! multiline topdecl
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/haskell-tng-mode 6ae08ec 021/385: fixup! multiline topdecl type sections |
Date: |
Tue, 5 Oct 2021 23:58:53 -0400 (EDT) |
branch: elpa/haskell-tng-mode
commit 6ae08ec9c49eadf77e40f37e0a042c137a361a04
Author: Tseen She <ts33n.sh3@gmail.com>
Commit: Tseen She <ts33n.sh3@gmail.com>
fixup! multiline topdecl type sections
---
haskell-tng-font-lock.el | 21 +++++++--------------
1 file changed, 7 insertions(+), 14 deletions(-)
diff --git a/haskell-tng-font-lock.el b/haskell-tng-font-lock.el
index 746ff21..d2f13f1 100644
--- a/haskell-tng-font-lock.el
+++ b/haskell-tng-font-lock.el
@@ -103,23 +103,18 @@
(: symbol-start (char ?\\))))
. 'haskell-tng:keyword)
- ;; types
+ ;; Types.
(haskell-tng:explicit-type
(0 'haskell-tng:type keep))
(haskell-tng:topdecl
(1 'haskell-tng:type keep))
- ;; ;; TODO multiline data/newtype/class/instance types
- ;; (,(rx-to-string `(: line-start "data" (+ space)
- ;; (group (| ,conid ,consym))))
- ;; (1 'haskell-tng:type))
- ;; (,(rx-to-string `(: line-start (| "class" "instance") (+ space)
- ;; (group (+? anything))
- ;; (+ space) "where"))
- ;; (1 'haskell-tng:type keep))
+ ;; TODO types in deriving sections
+ ;; TODO types in import / export statements
+ ;; TODO ExplicitNamespaces to disambiguate TypeOperators
+
;; ;; TypeApplications
;; (,(rx-to-string `(: symbol-start "@" (* space)
- ;; ;; TODO: more liberal type application
;; (group (opt ,qual) (| ,conid ,consym))))
;; (1 'haskell-tng:type))
@@ -214,7 +209,8 @@
(defvar font-lock-beg)
(defvar font-lock-end))
-;; TODO: more aggressive non-type chars
+;; TODO: more aggressive non-type chars (these are technically allowed in
string
+;; literals and TypeOperators messes up everything)
(defconst haskell-tng:non-type "[^\\{}]")
(defconst haskell-tng:extend-explicit-type-regexp
@@ -255,9 +251,6 @@ Ensures that multiline module definitions are opened."
Ensures that multiline import definitions are opened."
nil)
-;; TODO multiline data / newtype / type definitions
-;; TODO delete the paren and type extender and rely on growing from a seed
-
(defun haskell-tng:debug-extend (to)
(message "extending `%s' to include `%s'!"
(buffer-substring-no-properties font-lock-beg font-lock-end)
- [nongnu] elpa/haskell-tng-mode a4a664b 056/385: layout inference, (continued)
- [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
- [nongnu] elpa/haskell-tng-mode 61f4c09 062/385: [ci skip] unify the testing approach, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode 138aca0 089/385: typelevel lists are harder than I thought..., ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode f5961e6 099/385: indentation cycles are really complicated..., ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode 6e4849c 112/385: some compilation test cases, ELPA Syncer, 2021/10/05
- [nongnu] elpa/haskell-tng-mode cb1d2db 106/385: newline shouldn't trigger indent cycling, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode f342041 118/385: better SMIE blinkers, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 249f507 121/385: support whitespace gaps, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 6ae08ec 021/385: fixup! multiline topdecl type sections,
ELPA Syncer <=
- [nongnu] elpa/haskell-tng-mode a808c7b 033/385: notes on language extensions, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode a4ec07a 032/385: fix install instructions, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 3e8efdc 023/385: type aliases and deriving, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode ad570a0 039/385: out of date comments, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 7326aad 041/385: modules and more efficient none, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 49611c6 042/385: regression tests for fontification, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode c22f7d2 045/385: thoughts on future plans, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode a5f779d 047/385: initial SMIE tests, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode dae43ac 049/385: improvements to the default lexer, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode d76c6ad 053/385: some thoughts on WLDO detection, ELPA Syncer, 2021/10/06