]> Cypherpunks repositories - gostls13.git/commitdiff
gc: backslash newline is not a legal escape sequence in strings
authorRobert Griesemer <gri@golang.org>
Tue, 8 Jun 2010 01:10:48 +0000 (18:10 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 8 Jun 2010 01:10:48 +0000 (18:10 -0700)
Fixes #827.

R=ken2
CC=golang-dev, rsc
https://golang.org/cl/1592041

src/cmd/gc/lex.c

index 1bf51a70a44e14711aa4c99819e5b8d427bddf48..f50c857a6641a8b991af958783103487949183ed 100644 (file)
@@ -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;