1
0
mirror of https://github.com/golang/go synced 2024-11-22 00:04:41 -07:00

bug163 bug164 bug166

R=ken
OCL=30889
CL=30889
This commit is contained in:
Russ Cox 2009-06-29 17:46:22 -07:00
parent df36629d76
commit 5d5904bb4d
7 changed files with 12 additions and 18 deletions

View File

@ -344,6 +344,7 @@ common_dcl:
varoptsemi:
{
if(yylast == LSEMIBRACE)
yyoptsemi('=');
}

View File

@ -815,6 +815,9 @@ talph:
yyerror("illegal character 0x%ux", rune);
goto l0;
}
// 0xb7 · is used for internal names
if(!isalpharune(c) && !isdigitrune(c) && c != 0xb7)
yyerror("invalid identifier character 0x%ux", rune);
break;
}
c = getc();

View File

@ -173,7 +173,7 @@ func (req *Request) write(w io.Writer) os.Error {
Loop:
for {
var nr, nw int;
var er, ew os.Error
var er, ew os.Error;
if nr, er = req.Body.Read(buf); nr > 0 {
if er == nil || er == os.EOF {
fmt.Fprintf(w, "%x\r\n", nr);

View File

@ -9,5 +9,5 @@ package main
import "fmt"
func main() {
日本語 := 1; // Japanese ideographs are not letters
日本語 := 1; // ERROR "identifier"
}

View File

@ -6,8 +6,7 @@
package main
// Multi-line string literal do not allow newline chars according to spec
// but 6g accepts this code with the newlines interpreted as newlines.
// Multi-line string literal now allowed.
const s = `
Hello, World!

View File

@ -105,15 +105,6 @@ BUG: bug159
123
BUG: should fail
=========== bugs/bug163.go
BUG: should not compile
=========== bugs/bug164.go
BUG: should not compile
=========== bugs/bug166.go
BUG: errchk: command succeeded unexpectedly: 6g bugs/bug166.go
=========== fixedbugs/bug016.go
fixedbugs/bug016.go:7: constant -3 overflows uint