Commit 45cba57e authored by Robert Griesemer's avatar Robert Griesemer

gofmt'ed more stragglers

R=rsc
http://go/go-review/1019004
parent 48b31569
......@@ -440,7 +440,7 @@ func (p *parser) term() (start, end instr) {
// The other functions (closure(), concatenation() etc.) assume
// it's safe to recur to here.
if p.error != "" {
return
return;
}
switch c := p.c(); c {
case '|', endOfFile:
......@@ -473,7 +473,7 @@ func (p *parser) term() (start, end instr) {
p.nextc();
start = p.charClass();
if p.error != "" {
return
return;
}
if p.c() != ']' {
p.error = ErrUnmatchedLbkt;
......@@ -580,7 +580,7 @@ func (p *parser) concatenation() (start, end instr) {
for {
nstart, nend := p.closure();
if p.error != "" {
return
return;
}
switch {
case nstart == nil: // end of this concatenation
......@@ -602,7 +602,7 @@ func (p *parser) concatenation() (start, end instr) {
func (p *parser) regexp() (start, end instr) {
start, end = p.concatenation();
if p.error != "" {
return
return;
}
for {
switch p.c() {
......@@ -612,7 +612,7 @@ func (p *parser) regexp() (start, end instr) {
p.nextc();
nstart, nend := p.concatenation();
if p.error != "" {
return
return;
}
alt := new(_Alt);
p.re.add(alt);
......
......@@ -1187,15 +1187,15 @@ var second = []unicode.Range{
// standard HTML entity characters.
var HTMLEntity = htmlEntity
var htmlEntity = map[string]string {
/*
var htmlEntity = map[string]string{
/*
hget http://www.w3.org/TR/html4/sgml/entities.html |
ssam '
,y /\>/ x/\<(.|\n)+/ s/\n/ /g
,x v/^\<!ENTITY/d
,s/\<!ENTITY ([^ ]+) .*U\+([0-9A-F][0-9A-F][0-9A-F][0-9A-F]) .+/ "\1": "\\u\2",/g
'
*/
*/
"nbsp": "\u00A0",
"iexcl": "\u00A1",
"cent": "\u00A2",
......@@ -1454,11 +1454,11 @@ var htmlEntity = map[string]string {
// should be considered to close automatically.
var HTMLAutoClose = htmlAutoClose
var htmlAutoClose = []string {
/*
var htmlAutoClose = []string{
/*
hget http://www.w3.org/TR/html4/loose.dtd |
9 sed -n 's/<!ELEMENT (.*) - O EMPTY.+/ "\1",/p' | tr A-Z a-z
*/
*/
"basefont",
"br",
"area",
......
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