A newline in the middle of a string is an error unless a line
continuation character is used.
--HG--
branch : 1.7
YY_RULE_SETUP
#line 562 "toke.l"
{
- if (yyleng % 2 == 1)
+ if (yyleng & 1)
return '!'; /* return '!' */
}
YY_BREAK
YY_RULE_SETUP
#line 567 "toke.l"
{
+ if (YY_START == INSTR) {
+ LEXTRACE("ERROR ");
+ return ERROR; /* line break in string */
+ }
BEGIN INITIAL;
++sudolineno;
continued = FALSE;
YY_BREAK
case 52:
YY_RULE_SETUP
-#line 575 "toke.l"
+#line 579 "toke.l"
{ /* throw away space/tabs */
sawspace = TRUE; /* but remember for fill_args */
}
YY_BREAK
case 53:
YY_RULE_SETUP
-#line 579 "toke.l"
+#line 583 "toke.l"
{
sawspace = TRUE; /* remember for fill_args */
++sudolineno;
YY_BREAK
case 54:
YY_RULE_SETUP
-#line 585 "toke.l"
+#line 589 "toke.l"
{
BEGIN INITIAL;
++sudolineno;
YY_BREAK
case 55:
YY_RULE_SETUP
-#line 593 "toke.l"
+#line 597 "toke.l"
{
LEXTRACE("ERROR ");
return ERROR;
case YY_STATE_EOF(STARTDEFS):
case YY_STATE_EOF(INDEFS):
case YY_STATE_EOF(INSTR):
-#line 598 "toke.l"
+#line 602 "toke.l"
{
if (YY_START != INITIAL) {
BEGIN INITIAL;
YY_BREAK
case 56:
YY_RULE_SETUP
-#line 608 "toke.l"
+#line 612 "toke.l"
ECHO;
YY_BREAK
-#line 2415 "lex.yy.c"
+#line 2419 "lex.yy.c"
case YY_END_OF_BUFFER:
{
return 0;
}
#endif
-#line 608 "toke.l"
+#line 612 "toke.l"
struct path_list {
char *path;
} /* return ':' */
<*>!+ {
- if (yyleng % 2 == 1)
+ if (yyleng & 1)
return '!'; /* return '!' */
}
<*>\n {
+ if (YY_START == INSTR) {
+ LEXTRACE("ERROR ");
+ return ERROR; /* line break in string */
+ }
BEGIN INITIAL;
++sudolineno;
continued = FALSE;