[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/haskell-tng-mode f3e3838 070/385: starting to transcribe t
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/haskell-tng-mode f3e3838 070/385: starting to transcribe the expression table |
Date: |
Tue, 5 Oct 2021 23:59:03 -0400 (EDT) |
branch: elpa/haskell-tng-mode
commit f3e38388c7d002b4a850b22d6f6561b663140da6
Author: Tseen She <ts33n.sh3@gmail.com>
Commit: Tseen She <ts33n.sh3@gmail.com>
starting to transcribe the expression table
---
README.md | 4 +++-
haskell-tng-lexer.el | 6 ++++++
haskell-tng-smie.el | 3 ++-
haskell-tng-syntax.el | 3 +++
4 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 5e84623..f69477d 100644
--- a/README.md
+++ b/README.md
@@ -65,7 +65,7 @@ Some blue sky features are being considered but may be best
as independent proje
- `.cabal` editing / navigation
- [`.hie`](https://ghc.haskell.org/trac/ghc/wiki/HIEFiles) files as a parser
backend and many type based queries.
-- lightweight interactive commands ([`dante`](https://github.com/jyp/dante) /
[`intero`](https://github.com/commercialhaskell/intero)) (or perhaps redundant
with `.hie`).
+- lightweight interactive commands ([`dante`](https://github.com/jyp/dante) /
[`intero`](https://github.com/commercialhaskell/intero) /
[`hhp`](https://github.com/kazu-yamamoto/hhp)), will be made redundant with
`.hie`:
- `:type` at point
- `:browse` `company-backend`
- `:doc` at point
@@ -86,3 +86,5 @@ Some blue sky features are being considered but may be best
as independent proje
- be compatible with
[`apply-refact`](https://github.com/mpickering/apply-refact) /
[`hlint-refactor-mode`](https://github.com/mpickering/hlint-refactor-mode)
- convert wildcard import to explicit list
- insert explicit list of exports
+- Reviewing
+ - hide changes to imports when reviewing diffs
diff --git a/haskell-tng-lexer.el b/haskell-tng-lexer.el
index 28fd6ce..3110e4a 100644
--- a/haskell-tng-lexer.el
+++ b/haskell-tng-lexer.el
@@ -89,6 +89,12 @@ the lexer."
(looking-at (rx (+ (| (syntax word) (syntax symbol))))))
(haskell-tng-lexer:last-match))
+ ;; TODO infix operators should be converted to a virtual token
+ ;; (with some important ones allowed through for fixity)
+
+ ;; TODO virtual tokens for pattern matches. Would be even better if
+ ;; it was in the syntax table so fontification could benefit.
+
;; single char
(t
(forward-char)
diff --git a/haskell-tng-smie.el b/haskell-tng-smie.el
index cbd281f..67de3f2 100644
--- a/haskell-tng-smie.el
+++ b/haskell-tng-smie.el
@@ -36,7 +36,7 @@
(infixexp "::" type)
(infixexp))
- ;; TODO monkey patch `smie-indent-forward' to support regexps in `assoc'
+ ;; TODO update the lexer to provide a virtual token for infix
(infixexp
(lexp "$" infixexp) ;; TODO arrange by fixity
(lexp "+" infixexp)
@@ -80,6 +80,7 @@
(stmt
(id "<-" exp))
+ ;; TODO operator precedences
))))
;; TODO indentation rules
diff --git a/haskell-tng-syntax.el b/haskell-tng-syntax.el
index d8c79ae..1761539 100644
--- a/haskell-tng-syntax.el
+++ b/haskell-tng-syntax.el
@@ -86,6 +86,9 @@
(put-text-property open (1+ open) 'syntax-table '(7 . ?\'))
(put-text-property close (1+ close) 'syntax-table '(7 . ?\')))))
+;; TODO or look for non-string backslashes. While we're at it, we could mark
+;; everything up to the -> with an apat property / category. Alternatively this
+;; would need to be in the lexer (and fontification would miss out).
(defun haskell-tng:syntax:escapes (start end)
"Backslash inside String is an escape character."
(goto-char start)
- [nongnu] elpa/haskell-tng-mode 2060f7a 092/385: thoughts on indentation testing, (continued)
- [nongnu] elpa/haskell-tng-mode 2060f7a 092/385: thoughts on indentation testing, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 6d2d764 094/385: skeleton for indentation tests, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 0d04664 115/385: implement batch compilation, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode adb3c50 143/385: better insert indentation suggestions, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode e79577e 132/385: match ghc source paths when compiling, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 8ec4807 145/385: somehow dropped font-lock-extend-region-multiline, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode d3a6a22 147/385: no todos in the test/src dir, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 85f20b1 154/385: indent coproducts, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 3dbb883 013/385: more progress on multiline type expansion, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode c6382e1 036/385: almost got it with imports, then I lost it..., ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode f3e3838 070/385: starting to transcribe the expression table,
ELPA Syncer <=
- [nongnu] elpa/haskell-tng-mode ceaec13 098/385: groundwork for tab cycling, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 8b6d545 178/385: split all the tests, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 4e1f51c 170/385: indent is deriving aware, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 3ddafce 181/385: disambiguate -> during lexing, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 6b4dca0 189/385: note other build tools, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode cc657a8 197/385: support type alignment options, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode a7098e8 194/385: stylish haskell outputs failures, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 21fe2a0 221/385: fix broken test assertions, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 907255e 026/385: some namespacing, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode e7eaa38 077/385: some ideas for cabal, ELPA Syncer, 2021/10/06