From 5cf460cc0741a5e0da665c4cff73a3a5d9ea39cc Mon Sep 17 00:00:00 2001 From: tg Date: Mon, 15 Dec 2014 22:08:55 +0000 Subject: [PATCH] =?UTF-8?q?=E3=80=8Cif=20+=20comment(!)=20+=20label(!!)=20?= =?UTF-8?q?+=20one=20statement=E3=80=8D=20=E2=86=90=20shouldn=E2=80=99t=20?= =?UTF-8?q?that=20get=20braces,=20style(9)=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- syn.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/syn.c b/syn.c index 6a544df..48e5fe5 100644 --- a/syn.c +++ b/syn.c @@ -23,7 +23,7 @@ #include "sh.h" -__RCSID("$MirOS: src/bin/mksh/syn.c,v 1.94 2014/01/05 21:57:29 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/syn.c,v 1.95 2014/12/15 22:08:55 tg Exp $"); struct nesting_state { int start_token; /* token than began nesting (eg, FOR) */ @@ -196,10 +196,11 @@ synio(int cf) musthave(LWORD, ishere ? HEREDELIM : 0); if (ishere) { iop->delim = yylval.cp; - if (*ident != 0) + if (*ident != 0) { /* unquoted */ gotnulldelim: iop->flag |= IOEVAL; + } if (herep > &heres[HERES - 1]) yyerror("too many %ss\n", "<<"); *herep++ = iop;