From: Anthony Martin Date: Wed, 30 Jan 2013 23:06:35 +0000 (-0800) Subject: cmd/gc: support GNU Bison 2.7 in bisonerrors X-Git-Tag: go1.1rc2~1231 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e7ef3b6dafd1bd8d460029880d559a403d46d20c;p=gostls13.git cmd/gc: support GNU Bison 2.7 in bisonerrors R=golang-dev, minux.ma, rsc CC=golang-dev https://golang.org/cl/7235064 --- diff --git a/src/cmd/gc/bisonerrors b/src/cmd/gc/bisonerrors index 0f865d086c..8886a8e529 100755 --- a/src/cmd/gc/bisonerrors +++ b/src/cmd/gc/bisonerrors @@ -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/ {