[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/haskell-tng-mode 7eaef51 078/385: optimisation in the sexp
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/haskell-tng-mode 7eaef51 078/385: optimisation in the sexp test |
Date: |
Tue, 5 Oct 2021 23:59:05 -0400 (EDT) |
branch: elpa/haskell-tng-mode
commit 7eaef5140341e3a018baf48c7731f11ee398b1bc
Author: Tseen She <ts33n.sh3@gmail.com>
Commit: Tseen She <ts33n.sh3@gmail.com>
optimisation in the sexp test
---
haskell-tng-smie.el | 2 +-
test/haskell-tng-sexp-test.el | 6 ++++--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/haskell-tng-smie.el b/haskell-tng-smie.el
index bc729ac..619773f 100644
--- a/haskell-tng-smie.el
+++ b/haskell-tng-smie.el
@@ -102,7 +102,7 @@
)))
-;; TODO indentation rules
+;; FIXME indentation rules
;;
https://www.gnu.org/software/emacs/manual/html_mono/elisp.html#SMIE-Indentation
;;
;; ideas for an indentation tester
diff --git a/test/haskell-tng-sexp-test.el b/test/haskell-tng-sexp-test.el
index 7332243..d0abd96 100644
--- a/test/haskell-tng-sexp-test.el
+++ b/test/haskell-tng-sexp-test.el
@@ -46,7 +46,8 @@
(forward-sexp)
(let ((forward (point)))
(backward-sexp)
- (unless (= (point) forward)
+ (unless (or (< p (point))
+ (= (point) forward))
(cons (point) forward))))))
(backward-forward
(ignore-errors
@@ -55,7 +56,8 @@
(backward-sexp)
(let ((backward (point)))
(forward-sexp)
- (unless (= backward (point))
+ (unless (or (< (point) p)
+ (= backward (point)))
(cons backward (point))))))))
(when forward-backward
(push forward-backward sexps))
- [nongnu] elpa/haskell-tng-mode 8b5a4d4 177/385: improve indentation tests, (continued)
- [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
- [nongnu] elpa/haskell-tng-mode 7eaef51 078/385: optimisation in the sexp test,
ELPA Syncer <=
- [nongnu] elpa/haskell-tng-mode cb0f3d2 082/385: starting indentation rules, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode cfbdae1 084/385: simplify the lexer assertion language, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 0c5acb7 087/385: lexer and grammar supports symid, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 6c520bc 093/385: fixes for type level lists, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode f085f16 097/385: indentation regression tests, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 01ea0b8 103/385: heuristic alternative indentation levels, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode c20ea4f 096/385: infix varid as symid, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode bfe859a 095/385: notes about lexers, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 0506391 109/385: module ... where indents to 0, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode d9bbcdd 111/385: next steps, ELPA Syncer, 2021/10/06