[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/haskell-tng-mode 3449847 162/385: no need to special-case
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/haskell-tng-mode 3449847 162/385: no need to special-case dollar |
Date: |
Tue, 5 Oct 2021 23:59:23 -0400 (EDT) |
branch: elpa/haskell-tng-mode
commit 3449847a289004145914b55dcc2ebba82742b11f
Author: Tseen She <ts33n.sh3@gmail.com>
Commit: Tseen She <ts33n.sh3@gmail.com>
no need to special-case dollar
---
haskell-tng-lexer.el | 5 -----
haskell-tng-smie.el | 9 ++++-----
test/src/indentation.hs.lexer | 6 +++---
test/src/medley.hs.lexer | 2 +-
4 files changed, 8 insertions(+), 14 deletions(-)
diff --git a/haskell-tng-lexer.el b/haskell-tng-lexer.el
index 158b9bf..8ea1a68 100644
--- a/haskell-tng-lexer.el
+++ b/haskell-tng-lexer.el
@@ -113,9 +113,6 @@ the lexer."
((looking-at (rx "'["))
;; DataKinds
(null (goto-char (+ (point) 1))))
- ((looking-at (rx symbol-start "$" symbol-end))
- ;; special handling of these operators
- (haskell-tng-lexer:last-match))
((looking-at haskell-tng:regexp:kindsym)
;; caveat: doesn't include typelevel lists, see fast-syntax
(haskell-tng-lexer:last-match nil "KINDSYM"))
@@ -179,8 +176,6 @@ the lexer."
;; non-trivial inversion
(goto-char (- (point) 1))
(haskell-tng-lexer:backward-token))
- ((looking-back (rx symbol-start "$" symbol-end) lbp 't)
- (haskell-tng-lexer:last-match 'reverse))
((looking-back haskell-tng:regexp:kindsym lbp 't)
(haskell-tng-lexer:last-match 'reverse "KINDSYM"))
((looking-back haskell-tng:regexp:kindid lbp 't)
diff --git a/haskell-tng-smie.el b/haskell-tng-smie.el
index c7d4407..5e86037 100644
--- a/haskell-tng-smie.el
+++ b/haskell-tng-smie.el
@@ -67,7 +67,6 @@
(infixexp
(id ":" infixexp) ;; keyword infix
(id "':" infixexp) ;; DataKinds
- (id "$" infixexp) ;; special case
(id "SYMID" infixexp))
(adt
@@ -204,7 +203,7 @@ information, to aid in the creation of new rules."
(:list-intro
(pcase arg
- ((or "<-" "$" "SYMID") t)
+ ((or "<-" "SYMID") t)
("=" (not (smie-rule-parent-p "data")))
))
@@ -219,7 +218,7 @@ information, to aid in the creation of new rules."
"where" "let" "do" "of"))
2))
("," (smie-rule-separator method))
- ((or "$" "SYMID")
+ ((or "SYMID")
(if (smie-rule-hanging-p) 2 (smie-rule-parent)))
))
@@ -235,7 +234,7 @@ information, to aid in the creation of new rules."
;;
;; blah = bloo where
;; bloo = blu
- ((or "where" "let" "do" "case" "->" "$" "SYMID")
+ ((or "where" "let" "do" "case" "->" "SYMID")
(smie-rule-parent))
("\\case" ;; LambdaCase
(smie-rule-parent))
@@ -247,7 +246,7 @@ information, to aid in the creation of new rules."
(when (smie-rule-hanging-p)
(smie-rule-parent)))
("," (smie-rule-separator method))
- (_ (when (smie-rule-parent-p "$" "SYMID")
+ (_ (when (smie-rule-parent-p "SYMID")
(smie-rule-parent)))
))
diff --git a/test/src/indentation.hs.lexer b/test/src/indentation.hs.lexer
index 68e0020..97aadd9 100644
--- a/test/src/indentation.hs.lexer
+++ b/test/src/indentation.hs.lexer
@@ -62,14 +62,14 @@ VARID
{ CONID -> §
; CONID VARID -> VARID
-} ; VARID VARID CONID = VARID $
+} ; VARID VARID CONID = VARID SYMID
§ §
§
-; VARID VARID « CONID VARID » = VARID $ \ VARID ->
+; VARID VARID « CONID VARID » = VARID SYMID \ VARID ->
VARID
; VARID = do
-{ VARID <- VARID $ VARID VARID
+{ VARID <- VARID SYMID VARID VARID
; VARID SYMID
VARID
diff --git a/test/src/medley.hs.lexer b/test/src/medley.hs.lexer
index 2943d14..0a2047f 100644
--- a/test/src/medley.hs.lexer
+++ b/test/src/medley.hs.lexer
@@ -147,7 +147,7 @@ CONSYM CONID « CONID » « CONID CONID »
; VARID = \case
{ CONID -> § SYMID VARID
-; CONID _ -> VARID $ §
+; CONID _ -> VARID SYMID §
} ; VARID = do
{ } }
- [nongnu] elpa/haskell-tng-mode 5f423b9 100/385: some alts in the indentation test, (continued)
- [nongnu] elpa/haskell-tng-mode 5f423b9 100/385: some alts in the indentation test, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 50b53d3 114/385: tng compilation tests, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 36ece6d 117/385: low hanging fruit, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 489e4c9 124/385: document explicit export fontification bug, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 91a1d08 136/385: creating small scenarios for indentation specs, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode ec39a64 133/385: improvements to indentation alts and compilation info, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode f67557b 142/385: fix a layout corner case, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 20f4091 152/385: support dollars in indentation, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 0d5e020 151/385: support LambdaCase, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 08a3946 163/385: records indentation, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 3449847 162/385: no need to special-case dollar,
ELPA Syncer <=
- [nongnu] elpa/haskell-tng-mode 8b5a4d4 177/385: improve indentation tests, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode cb801b4 015/385: moar multiline type search, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode de48840 030/385: multiline import anchors, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 5c50be0 044/385: remove redundant TODOs, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 174c63b 046/385: laying the foundations for SMIE, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 97ce717 058/385: improve the testing, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 2a2afee 064/385: cache invalidation and tests for layout invalidation, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 3ca869f 067/385: code reorganisation, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 0ffb885 071/385: a thought, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 79aeb82 076/385: most of the grammar, ELPA Syncer, 2021/10/06