diff options
author | 2012-07-05 03:00:22 +0100 | |
---|---|---|
committer | 2012-07-20 09:20:22 +0800 | |
commit | 4e7532418091e60ba632350eb865698dd208e968 (patch) | |
tree | 0bb0c06b21ec6bf1ea9aabed31c0e3c78c5ae6ec /bashast | |
parent | Builtin: Support more options for declare (diff) | |
download | libbash-4e7532418091e60ba632350eb865698dd208e968.tar.gz libbash-4e7532418091e60ba632350eb865698dd208e968.tar.bz2 libbash-4e7532418091e60ba632350eb865698dd208e968.zip |
Parser: Support line continuation inside keyword test
Diffstat (limited to 'bashast')
-rw-r--r-- | bashast/bashast.g | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bashast/bashast.g b/bashast/bashast.g index 2d425ce..0fb8212 100644 --- a/bashast/bashast.g +++ b/bashast/bashast.g @@ -614,9 +614,9 @@ condition_expr #endif keyword_condition_and - : keyword_condition_primary (BLANK!? LOGICAND^ BLANK!? keyword_condition_primary)*; + : keyword_condition_primary ( wspace!? LOGICAND^ wspace!? keyword_condition_primary)*; keyword_condition - : keyword_condition_and (BLANK!? LOGICOR^ BLANK!? keyword_condition_and)*; + : keyword_condition_and ( wspace!? LOGICOR^ wspace!? keyword_condition_and)*; keyword_negation_primary : BANG BLANK keyword_condition_primary -> ^(NEGATION keyword_condition_primary); keyword_condition_primary |