From 2d6569e5906ad504ecc66a3b0114cd284afd81a1 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 18 May 2015 12:06:43 +0100 Subject: 35184: Additional case fix for 35168. Lexical analysis flags got screwed up after a "|", so we didn't parse patterns properly, in particular those with parentheses. --- Test/A01grammar.ztst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'Test/A01grammar.ztst') diff --git a/Test/A01grammar.ztst b/Test/A01grammar.ztst index 1ba0a54d7..41fb48688 100644 --- a/Test/A01grammar.ztst +++ b/Test/A01grammar.ztst @@ -543,6 +543,7 @@ . ./bad_syntax 126: Attempt to "." file with bad syntax. ?./bad_syntax:2: parse error near `\n' +# ` echo 'false' >dot_false . ./dot_false @@ -650,3 +651,17 @@ >Pattern matched five >Pattern matched six >Character class matched abecedinarian + + case grumph in + ( no | (grumph) ) + print 1 OK + ;; + esac + case snruf in + ( fleer | (|snr(|[au]f)) ) + print 2 OK + ;; + esac +0: case patterns within words +>1 OK +>2 OK -- cgit 1.4.1