mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-13 23:31:08 +02:00
zsh-workers/8536
This commit is contained in:
parent
c037d28368
commit
cf2aed3500
1 changed files with 8 additions and 4 deletions
12
Src/lex.c
12
Src/lex.c
|
@ -1299,16 +1299,20 @@ dquote_parse(char endchar, int sub)
|
|||
intick = 1, ALLOWHIST
|
||||
break;
|
||||
case '(':
|
||||
pct++;
|
||||
if (!math || !bct)
|
||||
pct++;
|
||||
break;
|
||||
case ')':
|
||||
err = (!pct-- && math);
|
||||
if (!math || !bct)
|
||||
err = (!pct-- && math);
|
||||
break;
|
||||
case '[':
|
||||
brct++;
|
||||
if (!math || !bct)
|
||||
brct++;
|
||||
break;
|
||||
case ']':
|
||||
err = (!brct-- && math);
|
||||
if (!math || !bct)
|
||||
err = (!brct-- && math);
|
||||
break;
|
||||
case '"':
|
||||
if (intick || (!endchar && !bct))
|
||||
|
|
Loading…
Reference in a new issue