Commit 0c222d6e authored by Robert Griesemer's avatar Robert Griesemer

gc: backslash newline is not a legal escape sequence in strings

Fixes #827.

R=ken2
CC=golang-dev, rsc
https://golang.org/cl/1592041
parent 440cc954
......@@ -1160,7 +1160,6 @@ escchar(int e, int *escflg, vlong *val)
*escflg = 0;
loop:
c = getr();
switch(c) {
case EOF:
......@@ -1180,9 +1179,6 @@ loop:
c = getr();
switch(c) {
case '\n':
goto loop;
case 'x':
*escflg = 1; // it's a byte
i = 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment