[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/forth-mode 522256d98d 145/153: Adding support for ?of
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/forth-mode 522256d98d 145/153: Adding support for ?of |
Date: |
Sat, 29 Jan 2022 08:02:27 -0500 (EST) |
branch: elpa/forth-mode
commit 522256d98d1a909983bcfd3ae20c65226d5929b6
Author: Simon Stapleton <simon.stapleton@gmail.com>
Commit: Lars Brinkhoff <lars@nocrew.org>
Adding support for ?of
---
forth-smie.el | 1 +
forth-syntax.el | 2 +-
test/tests.el | 4 ++++
3 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/forth-smie.el b/forth-smie.el
index 54610d7ba4..9c10f7df7d 100644
--- a/forth-smie.el
+++ b/forth-smie.el
@@ -17,6 +17,7 @@
("begin" words "while" words "repeat")
("begin" words "until")
("begin" words "again")
+ ("?of" words "endof")
("of" words "endof")
("case" words "endcase")
("?do" words "loop")
diff --git a/forth-syntax.el b/forth-syntax.el
index 9309d5084c..d3d1dbec98 100644
--- a/forth-syntax.el
+++ b/forth-syntax.el
@@ -202,7 +202,7 @@ SYNTAX must be a valid argument for `string-to-syntax'."
'("if" "else" "then"
"?do" "do" "unloop" "exit" "leave" "loop" "+loop"
"begin" "while" "repeat" "again" "until"
- "case" "of" "endof" "endcase"
+ "case" "?of" "of" "endof" "endcase"
":noname" ";" "does>" "immediate"
"is" "to"
"literal" "2literal" "fliteral" "sliteral"
diff --git a/test/tests.el b/test/tests.el
index e36100d223..1948203d15 100644
--- a/test/tests.el
+++ b/test/tests.el
@@ -171,6 +171,7 @@ The whitespace before and including \"|\" on each line is
removed."
(forth-assert-face "postpone ( →x " nil)
(forth-assert-face "' s\" →x "nil)
(forth-assert-face "case [char] ' →of exit endof " font-lock-keyword-face)
+ (forth-assert-face "case [char] ' →?of exit endof " font-lock-keyword-face)
(forth-assert-face "→postpone postpone" font-lock-keyword-face)
(forth-assert-face "postpone →postpone" nil)
(forth-assert-face "→literal" font-lock-keyword-face)
@@ -259,6 +260,9 @@ The whitespace before and including \"|\" on each line is
removed."
| [char] b of bar
| baz
| endof
+ | test ?of bar
+ | baz
+ | endof
| drop exit
|endcase"))
- [nongnu] elpa/forth-mode f418b9aac2 087/153: Set process coding system for SwiftForth., (continued)
- [nongnu] elpa/forth-mode f418b9aac2 087/153: Set process coding system for SwiftForth., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode f3d76c12c1 125/153: Test completion-at-point, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 4dc1ff0f3b 086/153: Include backend files in make dependencies., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 2779ca61ab 075/153: Improve building of backend files., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 71016700dc 095/153: Emacs 23: use cl library instead of cl-lib., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 715d813c83 062/153: Clean up tests., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode e35317f2f7 093/153: Improve syntax-propertize function, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 76e3885c0b 150/153: Remove obsolete Wercker CI build., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 443193e02f 071/153: Auto-detect Forth implementation., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode a7a5d4ba05 137/153: Use defcustom to define forth-smie-basic-indent, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 522256d98d 145/153: Adding support for ?of,
ELPA Syncer <=
- [nongnu] elpa/forth-mode 08d891c907 026/153: Use LOCAL argument to add-hook., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 82f746ba54 049/153: Use ERT for some light testing as part of build., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode ad5ce072ca 006/153: GPL3, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 6f18e1c20e 011/153: Tweak syntax table., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 6efdba0686 029/153: Remove dependency from forth-mode to forth-block-mode., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode b69527cdd2 084/153: SwiftForth shouldn't concern itself with terminal settings., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 90c1ec5293 032/153: GitHub README., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 813620cae9 034/153: Run hooks before starting an interactive Forth session., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 6dcd29382f 015/153: Make the forth-interaction-send callback optional., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 68d740e7ae 042/153: Empty files are not block files., ELPA Syncer, 2022/01/29