From e7ef3b6dafd1bd8d460029880d559a403d46d20c Mon Sep 17 00:00:00 2001 From: Anthony Martin Date: Wed, 30 Jan 2013 15:06:35 -0800 Subject: [PATCH] cmd/gc: support GNU Bison 2.7 in bisonerrors R=golang-dev, minux.ma, rsc CC=golang-dev https://golang.org/cl/7235064 --- src/cmd/gc/bisonerrors | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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/ { -- 2.48.1