summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2010-06-07 18:10:48 -0700
committerRobert Griesemer <gri@golang.org>2010-06-07 18:10:48 -0700
commit984cbbcb0c87d1c2fb335e905fb5611ebe194949 (patch)
tree1abd8fae84309610f8d1f1da002961697d4ef3bd /src
parentafcd104aebd5ce30bec06fc45f638bacc90a77e6 (diff)
downloadgolang-984cbbcb0c87d1c2fb335e905fb5611ebe194949.tar.gz
gc: backslash newline is not a legal escape sequence in strings
Fixes issue 827. R=ken2 CC=golang-dev, rsc http://codereview.appspot.com/1592041
Diffstat (limited to 'src')
-rw-r--r--src/cmd/gc/lex.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/cmd/gc/lex.c b/src/cmd/gc/lex.c
index 1bf51a70a..f50c857a6 100644
--- a/src/cmd/gc/lex.c
+++ b/src/cmd/gc/lex.c
@@ -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;