cmd/gc: support GNU Bison 2.7 in bisonerrors

R=golang-dev, minux.ma, rsc
CC=golang-dev
https://golang.org/cl/7235064
This commit is contained in:
Anthony Martin 2013-01-30 15:06:35 -08:00
parent fa2acad603
commit e7ef3b6daf

View file

@ -41,9 +41,9 @@ grammar && NF>0 {
}
# In state dumps, record shift/reduce actions.
bison && /^state 0/ { grammar = 0; states = 1 }
bison && /^[Ss]tate 0/ { grammar = 0; states = 1 }
states && /^state / { state = $2 }
states && /^[Ss]tate / { state = $2 }
states { statetext[state] = statetext[state] $0 "\n" }
states && / shift/ {