summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-04 18:10:02 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-04 18:10:02 +0900
commit5c2508060b79b4299a18d05511d3530ad14b1b7a (patch)
treebd0442342e01e423208b700adf9e66e7198c8f0d
parent47720e2255f34ecad49763c66a7ea02a55a3f60a (diff)
Bison 3.5.91 now defaults parse.error to "simple"
-rw-r--r--parse.y1
-rwxr-xr-xtool/pure_parser.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 09ba462124..9f6bda35ba 100644
--- a/parse.y
+++ b/parse.y
@@ -1014,6 +1014,7 @@ static int looking_at_eol_p(struct parser_params *p);
%expect 0
%define api.pure
+%define parse.error verbose
%lex-param {struct parser_params *p}
%parse-param {struct parser_params *p}
%initial-action
diff --git a/tool/pure_parser.rb b/tool/pure_parser.rb
index e4aedfa81b..d07df681be 100755
--- a/tool/pure_parser.rb
+++ b/tool/pure_parser.rb
@@ -18,3 +18,4 @@ BEGIN {
ARGV.push(file)
}
$_.sub!(/^%define\s+api\.pure/, '%pure-parser')
+$_.sub!(/^%define\s+.*/, '')