about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2015-05-18 12:06:43 +0100
committerPeter Stephenson <pws@zsh.org>2015-05-18 12:06:43 +0100
commit2d6569e5906ad504ecc66a3b0114cd284afd81a1 (patch)
tree241431dc698721381c643541595708f9dce3ce93 /Test
parent52aeb9aaeb4799b760138a7c34b18ede4b47242a (diff)
downloadzsh-2d6569e5906ad504ecc66a3b0114cd284afd81a1.tar.gz
zsh-2d6569e5906ad504ecc66a3b0114cd284afd81a1.tar.xz
zsh-2d6569e5906ad504ecc66a3b0114cd284afd81a1.zip
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.
Diffstat (limited to 'Test')
-rw-r--r--Test/A01grammar.ztst15
1 files changed, 15 insertions, 0 deletions
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