about summary refs log tree commit diff
path: root/Src/lex.c
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2001-04-21 18:49:12 +0000
committerBart Schaefer <barts@users.sourceforge.net>2001-04-21 18:49:12 +0000
commit219674c48b0956fe8ed9e6e6c795eeca90f41b5a (patch)
treead3dbef61636d7888817cff3eb1850f693ffad79 /Src/lex.c
parented28d19b969ab0d6f7983f37e7700d1f70b512fb (diff)
downloadzsh-219674c48b0956fe8ed9e6e6c795eeca90f41b5a.tar.gz
zsh-219674c48b0956fe8ed9e6e6c795eeca90f41b5a.tar.xz
zsh-219674c48b0956fe8ed9e6e6c795eeca90f41b5a.zip
More parameter/subscript cleanup.
Diffstat (limited to 'Src/lex.c')
-rw-r--r--Src/lex.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Src/lex.c b/Src/lex.c
index 46d83cb21..428e77431 100644
--- a/Src/lex.c
+++ b/Src/lex.c
@@ -1303,9 +1303,9 @@ dquote_parse(char endchar, int sub)
 	    if (c != '\n') {
 		if (c == '$' || c == '\\' || (c == '}' && !intick && bct) ||
 		    c == endchar || c == '`' ||
-		    (math && (c == '[' || c == ']' ||
-			      c == '(' || c == ')' ||
-			      c == '{' || c == '}')))
+		    (endchar == ']' && (c == '[' || c == ']' ||
+					c == '(' || c == ')' ||
+					c == '{' || c == '}')))
 		    add(Bnull);
 		else {
 		    /* lexstop is implicitly handled here */
@@ -1390,7 +1390,7 @@ dquote_parse(char endchar, int sub)
 		err = (!brct-- && math);
 	    break;
 	case '"':
-	    if (intick || (!endchar && !bct))
+	    if (intick || endchar == ']' || (!endchar && !bct))
 		break;
 	    if (bct) {
 		add(Dnull);