summaryrefslogtreecommitdiff
path: root/src/cmd/gc/bisonerrors
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/gc/bisonerrors')
-rwxr-xr-xsrc/cmd/gc/bisonerrors4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/gc/bisonerrors b/src/cmd/gc/bisonerrors
index 0f865d086..8886a8e52 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/ {