[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/forth-mode 64209f501c 108/153: Merge pull request #35 from
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/forth-mode 64209f501c 108/153: Merge pull request #35 from ellerh/forward-sexp-tests |
Date: |
Sat, 29 Jan 2022 08:02:23 -0500 (EST) |
branch: elpa/forth-mode
commit 64209f501caf5b5a33373b83115ffe8146a1f502
Merge: 350638bb0c d1498037a2
Author: Helmut Eller <eller.helmut@gmail.com>
Commit: GitHub <noreply@github.com>
Merge pull request #35 from ellerh/forward-sexp-tests
Trying out my new merge powers
---
forth-smie.el | 3 ++-
test/tests.el | 11 +++++++++++
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/forth-smie.el b/forth-smie.el
index ae44364ca7..aa6b64a382 100644
--- a/forth-smie.el
+++ b/forth-smie.el
@@ -18,7 +18,8 @@
("do" words "loop")
("do" words "+loop")
("begin-structure" words "end-structure")
- (":" words ";"))
+ (":" words ";")
+ (":noname" words ";"))
(words)))))
(defvar forth-smie--basic-indent 2)
diff --git a/test/tests.el b/test/tests.el
index e9460de9cc..1681a10389 100644
--- a/test/tests.el
+++ b/test/tests.el
@@ -50,6 +50,12 @@ The whitespace before and including \"|\" on each line is
removed."
(should (string= (forth-strip-| expected)
(substring-no-properties (buffer-string))))))))
+(defun forth-assert-forward-sexp (content start end)
+ (forth-with-temp-buffer content
+ (goto-char start)
+ (forward-sexp)
+ (should (= (point) end))))
+
(ert-deftest forth-paren-comment-font-lock ()
(forth-assert-face "( )" 1 font-lock-comment-delimiter-face)
(forth-assert-face ".( )" 1 font-lock-comment-face)
@@ -170,3 +176,8 @@ The whitespace before and including \"|\" on each line is
removed."
| [char] b of bar endof
| drop exit
|endcase"))
+
+(ert-deftest forth-sexp-movements ()
+ (forth-assert-forward-sexp " : foo bar ; \ x" 2 13)
+ (forth-assert-forward-sexp " :noname foo bar ; \ x" 2 19)
+ (forth-assert-forward-sexp " if drop exit else 1+ then bar " 2 27))
- [nongnu] elpa/forth-mode 74c0e17c45 122/153: Improve beginning-of-defun, (continued)
- [nongnu] elpa/forth-mode 74c0e17c45 122/153: Improve beginning-of-defun, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode b40ffb3127 078/153: Fix building with Emacs 23., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 1d85344467 113/153: Add commands to browse description in Forth standards, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode c5e63e29f1 072/153: Basic indentation of control structures, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 0d22cedbaf 133/153: Improve indentation of BEGIN-STRUCTURE/END-STRUCTURE, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 47f33ea62a 063/153: Move interaction functions to forth-interactive-mode., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 6fac263222 068/153: Automatic build with Wercker., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 9cf3d777ec 064/153: Fix for C-c C-s forth-see., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode d90c4a46e0 118/153: Use funny characters (→, ¹ and ²) to mark positions in test strings., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode c99ed046df 074/153: Remove debug message., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 64209f501c 108/153: Merge pull request #35 from ellerh/forward-sexp-tests,
ELPA Syncer <=
- [nongnu] elpa/forth-mode e6ee5ddf99 069/153: Handle ( ...) comments with syntax-propertize-function, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode e966275c2e 100/153: Add tests for indentation, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode dc3f7fabed 131/153: Use -y with apt-get., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode f531a1bcd7 096/153: Print test name in ERT shim., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 38d5152011 153/153: Version 0.2., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 9f885433e1 048/153: Use ERT for some light testing as part of build., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode b9586a57a5 147/153: Add menu, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode fdc218c6f2 052/153: Don't get Makefile variable EMACS from environment; it may be set to 't'., ELPA Syncer, 2022/01/29