diff options
author | 2012-08-03 04:03:28 +0100 | |
---|---|---|
committer | 2012-08-03 04:07:32 +0100 | |
commit | 4b0cb9bdc2981094bb94e210a3bf080c303da832 (patch) | |
tree | fc12d2827b298efa9a31ccfacbec45803ed5ae0b /bashast | |
parent | Parser: Multiline string declaration (diff) | |
download | libbash-4b0cb9bdc2981094bb94e210a3bf080c303da832.tar.gz libbash-4b0cb9bdc2981094bb94e210a3bf080c303da832.tar.bz2 libbash-4b0cb9bdc2981094bb94e210a3bf080c303da832.zip |
Parser: Accept semicolons inside builtin variable definitions
Diffstat (limited to 'bashast')
-rw-r--r-- | bashast/bashast.g | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bashast/bashast.g b/bashast/bashast.g index 0d59e8c..55c469a 100644 --- a/bashast/bashast.g +++ b/bashast/bashast.g @@ -481,6 +481,7 @@ scope { |(RPAREN) => RPAREN { --$builtin_variable_definition_item::parens; } |(DQUOTE) => DQUOTE { $builtin_variable_definition_item::dquotes = ! $builtin_variable_definition_item::dquotes; } |(~(EOL|SEMIC)) => expansion_base + | {LA(1) == SEMIC && $builtin_variable_definition_item::dquotes}? => SEMIC | {LA(1) == EOL && $builtin_variable_definition_item::parens > 0 || $builtin_variable_definition_item::dquotes}? => EOL )+; |