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) ...@@ -1160,7 +1160,6 @@ escchar(int e, int *escflg, vlong *val)
*escflg = 0; *escflg = 0;
loop:
c = getr(); c = getr();
switch(c) { switch(c) {
case EOF: case EOF:
...@@ -1180,9 +1179,6 @@ loop: ...@@ -1180,9 +1179,6 @@ loop:
c = getr(); c = getr();
switch(c) { switch(c) {
case '\n':
goto loop;
case 'x': case 'x':
*escflg = 1; // it's a byte *escflg = 1; // it's a byte
i = 2; 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