emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/gnuplot a0fee02 086/184: use `many1' for iteration spec, a


From: ELPA Syncer
Subject: [nongnu] elpa/gnuplot a0fee02 086/184: use `many1' for iteration spec, and tweak its test case
Date: Sun, 29 Aug 2021 11:03:21 -0400 (EDT)

branch: elpa/gnuplot
commit a0fee02802173cc424b00c420ac009b8c8fe0424
Author: joddie <jonxfield@gmail.com>
Commit: joddie <jonxfield@gmail.com>

    use `many1' for iteration spec, and tweak its test case
---
 gnuplot-context.el      | 2 +-
 gnuplot-test-context.el | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnuplot-context.el b/gnuplot-context.el
index faf53cb..80592a0 100644
--- a/gnuplot-context.el
+++ b/gnuplot-context.el
@@ -998,7 +998,7 @@ name; otherwise continues tokenizing up to the token at 
point. FIXME"
         ;; Iteration: for [... ]
         (iteration-spec
          [(:info "iteration")
-          (many
+          (many1
             "for" "[" name
             (either ["=" (delimited-list expression ":")]
                     ["in" expression])
diff --git a/gnuplot-test-context.el b/gnuplot-test-context.el
index 11a0baf..af19afa 100644
--- a/gnuplot-test-context.el
+++ b/gnuplot-test-context.el
@@ -261,6 +261,7 @@
   (should-match iteration-spec
     ("for [x = 1:9]")
     ("for [y=-2*pi:2*pi:0.1]")
+    ("for [x = 1:9] for [y=-2*pi:2*pi:0.1]")
     ("for[1:2:3]" :none)))
 
 ;; plot expression, ignoring assignments



reply via email to

[Prev in Thread] Current Thread [Next in Thread]