diff options
Diffstat (limited to 'bashast')
-rw-r--r-- | bashast/libbashWalker.g | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bashast/libbashWalker.g b/bashast/libbashWalker.g index f57f403..95f8a90 100644 --- a/bashast/libbashWalker.g +++ b/bashast/libbashWalker.g @@ -1068,7 +1068,8 @@ case_clause[const std::string& target] returns[bool matched] else { $matched = false; - seek_to_next_tree(ctx); + if(LA(1) == CASE_COMMAND) + seek_to_next_tree(ctx); } }) |CASE_PATTERN; |