Commit 5d5904bb authored by Russ Cox's avatar Russ Cox

bug163 bug164 bug166

R=ken
OCL=30889
CL=30889
parent df36629d
......@@ -344,6 +344,7 @@ common_dcl:
varoptsemi:
{
if(yylast == LSEMIBRACE)
yyoptsemi('=');
}
......
......@@ -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();
......
......@@ -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);
......
......@@ -9,5 +9,5 @@ package main
import "fmt"
func main() {
日本語 := 1; // Japanese ideographs are not letters
日本語 := 1; // ERROR "identifier"
}
......@@ -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!
......
......@@ -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
......
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