Merge "init: fix the parse error when meeting escape characters"

This commit is contained in:
Tom Cherry 2018-06-27 20:41:21 +00:00 committed by Gerrit Code Review
commit 78ea17a641
1 changed files with 5 additions and 0 deletions

View File

@ -85,15 +85,19 @@ textresume:
goto textdone;
case 'n':
*s++ = '\n';
x++;
break;
case 'r':
*s++ = '\r';
x++;
break;
case 't':
*s++ = '\t';
x++;
break;
case '\\':
*s++ = '\\';
x++;
break;
case '\r':
/* \ <cr> <lf> -> line continuation */
@ -101,6 +105,7 @@ textresume:
x++;
continue;
}
x++;
case '\n':
/* \ <lf> -> line continuation */
state->line++;