mirror of
https://github.com/golang/go
synced 2024-11-22 17:14:41 -07:00
enable test and fix bug in white space before {
R=rsc DELTA=6 (0 added, 0 deleted, 6 changed) OCL=27404 CL=27404
This commit is contained in:
parent
fa7be65bc0
commit
c1ed7d7d25
@ -141,7 +141,7 @@ Loop:
|
|||||||
if trim_white && only_white {
|
if trim_white && only_white {
|
||||||
start = i;
|
start = i;
|
||||||
}
|
}
|
||||||
} else if i > t.p+1 { // have some text accumulated so stop before '{'
|
} else if i > t.p { // have some text accumulated so stop before '{'
|
||||||
break Loop;
|
break Loop;
|
||||||
}
|
}
|
||||||
brace = true;
|
brace = true;
|
||||||
|
@ -158,11 +158,11 @@ var tests = []*Test {
|
|||||||
},
|
},
|
||||||
|
|
||||||
// Bugs
|
// Bugs
|
||||||
// &Test{
|
&Test{
|
||||||
// "{.section data}{.end} {header}\n",
|
"{.section data}{.end} {integer}\n",
|
||||||
//
|
|
||||||
// " 77\n"
|
" 77\n"
|
||||||
// },
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestAll(t *testing.T) {
|
func TestAll(t *testing.T) {
|
||||||
|
Loading…
Reference in New Issue
Block a user