]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/gc: support GNU Bison 2.7 in bisonerrors
authorAnthony Martin <ality@pbrane.org>
Wed, 30 Jan 2013 23:06:35 +0000 (15:06 -0800)
committerAnthony Martin <ality@pbrane.org>
Wed, 30 Jan 2013 23:06:35 +0000 (15:06 -0800)
R=golang-dev, minux.ma, rsc
CC=golang-dev
https://golang.org/cl/7235064

src/cmd/gc/bisonerrors

index 0f865d086c99f1f20577a858d7f14a74c20e3297..8886a8e529e3f49e6cd3c31b7b982dfbf39f6d1f 100755 (executable)
@@ -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/ {