diff options
author | Petteri Räty <petsku@petteriraty.eu> | 2011-06-09 17:14:33 +0300 |
---|---|---|
committer | Petteri Räty <petsku@petteriraty.eu> | 2011-06-10 17:44:01 +0300 |
commit | bb8cda9be17650ba4006fca9bae3274a4e55a809 (patch) | |
tree | 5b1883964dcea5e8e35e194544a34acaa5526f2b /bashast/gunit/array.gunit | |
parent | Parser: fix {GNUmakefile,{M,m}akefile} (diff) | |
download | libbash-bb8cda9be17650ba4006fca9bae3274a4e55a809.tar.gz libbash-bb8cda9be17650ba4006fca9bae3274a4e55a809.tar.bz2 libbash-bb8cda9be17650ba4006fca9bae3274a4e55a809.zip |
Parser: handle appending to arrays
The parser couldn't handle array+=(a b c) syntax.
Diffstat (limited to 'bashast/gunit/array.gunit')
-rw-r--r-- | bashast/gunit/array.gunit | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bashast/gunit/array.gunit b/bashast/gunit/array.gunit index caa2615..eb11be8 100644 --- a/bashast/gunit/array.gunit +++ b/bashast/gunit/array.gunit @@ -26,6 +26,9 @@ var_def: --disable-dependency-tracking ${VAR} )" -> (= asdf (ARRAY (STRING - - disable - dependency - tracking) (STRING (VAR_REF VAR)))) +"asdf=()" -> (= asdf ARRAY) +"asdf+=()" -> (+= asdf ARRAY) +"asdf+=(a)" -> (+= asdf (ARRAY (STRING a))) var_ref: "$asdf" -> (VAR_REF asdf) |