mirror of
https://github.com/golang/go
synced 2024-09-18 15:32:18 +00:00
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:
parent
fa2acad603
commit
e7ef3b6daf
|
@ -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/ {
|
||||
|
|
Loading…
Reference in a new issue