allow to escape newline in string literals.
(being compatible with solaris /usr/xpg4/bin/awk and GNU awk.)
This commit is contained in:
parent
be0c269596
commit
83aa569ca0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue