move label, see <Pine.BSM.4.64L.1003311156380.24549@herc.mirbsd.org> (my

first paragraph in that) for reason: to make it more clear from the code
This commit is contained in:
tg 2010-03-31 12:20:04 +00:00
parent d23b94aaa0
commit 2557cfbbe5

4
lex.c
View File

@ -22,7 +22,7 @@
#include "sh.h" #include "sh.h"
__RCSID("$MirOS: src/bin/mksh/lex.c,v 1.111 2010/03/27 16:53:16 tg Exp $"); __RCSID("$MirOS: src/bin/mksh/lex.c,v 1.112 2010/03/31 12:20:04 tg Exp $");
/* /*
* states while lexing word * states while lexing word
@ -324,7 +324,6 @@ yylex(int cf)
getsc_qchar: getsc_qchar:
if ((c = getsc())) { if ((c = getsc())) {
/* trailing \ is lost */ /* trailing \ is lost */
store_qchar:
*wp++ = QCHAR; *wp++ = QCHAR;
*wp++ = c; *wp++ = c;
} }
@ -356,6 +355,7 @@ yylex(int cf)
/* FALLTHROUGH */ /* FALLTHROUGH */
case '\\': case '\\':
case '$': case '`': case '$': case '`':
store_qchar:
*wp++ = QCHAR; *wp++ = QCHAR;
*wp++ = c; *wp++ = c;
break; break;