branch: elpa/gnuplot
commit a0fee02802173cc424b00c420ac009b8c8fe0424
Author: joddie <[email protected]>
Commit: joddie <[email protected]>
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