diff options
Diffstat (limited to 'src/shell.pest')
-rw-r--r-- | src/shell.pest | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/shell.pest b/src/shell.pest index bb06caa..94f78d2 100644 --- a/src/shell.pest +++ b/src/shell.pest @@ -33,12 +33,15 @@ alternation_word_part = ${ alternation_word = ${ alternation_word_part* } alternation = ${ "{" ~ alternation_word ~ ("," ~ alternation_word)* ~ "}" } +substitution = ${ "$(" ~ w? ~ commands ~ w? ~ ")"} + word_part = ${ alternation | + substitution | var | bareword | "'" ~ single_string ~ "'" | - "\"" ~ (var | double_string)+ ~ "\"" + "\"" ~ (substitution | var | double_string)+ ~ "\"" } word = ${ word_part+ } |