summaryrefslogtreecommitdiffstats
path: root/src/shell.pest
diff options
context:
space:
mode:
Diffstat (limited to 'src/shell.pest')
-rw-r--r--src/shell.pest3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shell.pest b/src/shell.pest
index 8c0e79c..4c5f728 100644
--- a/src/shell.pest
+++ b/src/shell.pest
@@ -27,11 +27,12 @@ word = ${
}
exe = ${ word ~ (w ~ word)* }
+list = ${ word ~ (w ~ word)* }
pipeline = ${ exe ~ (w? ~ "|" ~ w? ~ exe)* }
control_if = ${ "if" ~ w ~ pipeline }
control_while = ${ "while" ~ w ~ pipeline }
-control_for = ${ "for" ~ w ~ bareword ~ w ~ "in" ~ w ~ pipeline }
+control_for = ${ "for" ~ w ~ bareword ~ w ~ "in" ~ w ~ list }
control_end = ${ "end" }
control = ${ control_if | control_while | control_for | control_end }