mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-03 10:21:46 +02:00
zsh-workers/8782
This commit is contained in:
parent
505c14ca05
commit
121c60b9d6
1 changed files with 6 additions and 0 deletions
|
@ -1119,7 +1119,9 @@ gettokstr(int c, int sub)
|
|||
}
|
||||
ALLOWHIST
|
||||
if (c != '\'') {
|
||||
lineno -= (c == '\n');
|
||||
zerr("unmatched \'", NULL, 0);
|
||||
lineno += (c == '\n');
|
||||
peek = LEXERR;
|
||||
cmdpop();
|
||||
goto brk;
|
||||
|
@ -1141,7 +1143,9 @@ gettokstr(int c, int sub)
|
|||
c = dquote_parse('"', sub);
|
||||
cmdpop();
|
||||
if (c) {
|
||||
lineno -= (c == '\n');
|
||||
zerr("unmatched \"", NULL, 0);
|
||||
lineno += (c == '\n');
|
||||
peek = LEXERR;
|
||||
goto brk;
|
||||
}
|
||||
|
@ -1178,7 +1182,9 @@ gettokstr(int c, int sub)
|
|||
ALLOWHIST
|
||||
cmdpop();
|
||||
if (c != '`') {
|
||||
lineno -= (c == '\n');
|
||||
zerr("unmatched `", NULL, 0);
|
||||
lineno += (c == '\n');
|
||||
peek = LEXERR;
|
||||
goto brk;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue