allow to escape newline in string literals.

(being compatible with solaris /usr/xpg4/bin/awk and GNU awk.)
This commit is contained in:
yamt 2005-01-13 12:10:02 +00:00
parent be0c269596
commit 83aa569ca0
1 changed files with 1 additions and 0 deletions

1
dist/nawk/lex.c vendored
View File

@ -389,6 +389,7 @@ int string(void)
case '\\':
c = input();
switch (c) {
case '\n': break;
case '"': *bp++ = '"'; break;
case 'n': *bp++ = '\n'; break;
case 't': *bp++ = '\t'; break;