From f2b2271fbe4a7acb1b026545481bf5cd6879d983 Mon Sep 17 00:00:00 2001
From: Peter Stephenson
Date: Sat, 4 Jul 2015 11:01:47 +0100
Subject: Turning case parsed as multiple alternatives back into text.
Also add test.
---
Test/A01grammar.ztst | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
(limited to 'Test/A01grammar.ztst')
diff --git a/Test/A01grammar.ztst b/Test/A01grammar.ztst
index 50058e25d..8221735b6 100644
--- a/Test/A01grammar.ztst
+++ b/Test/A01grammar.ztst
@@ -695,3 +695,27 @@
0:Balanced parentheses and spaces with zsh pattern
>It worked
>That worked, too
+
+ fn() {
+ typeset ac_file="the else branch"
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
+ *.* ) break;;
+ *)
+ ;;
+ esac
+ print Stuff here
+ }
+ which fn
+ fn
+0:Long case with parsed alternatives turned back into text
+>fn () {
+> typeset ac_file="the else branch"
+> case $ac_file in
+> (*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj) ;;
+> (*.*) break ;;
+> (*) ;;
+> esac
+> print Stuff here
+>}
+>Stuff here
--
cgit 1.4.1