summaryrefslogtreecommitdiff
path: root/admin/grammars/python.wy
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2019-06-18 16:05:08 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2019-06-18 16:05:08 +0200
commitf21ec24524c705e18674a2e9e4db37b11fa3ebab (patch)
tree4d3f1ad27a88122e2e2a965dfd05edcdbb2e8a55 /admin/grammars/python.wy
parent90b44f336caf7d70721f44ac2497a38ff69d6c7d (diff)
downloademacs-f21ec24524c705e18674a2e9e4db37b11fa3ebab.tar.gz
Add a mechanism to specify expected shift/reduce .wy conflicts
* admin/grammars/python.wy: Set the expected number of shift/reduce conflicts to four. * lisp/cedet/semantic/grammar.el (semantic-grammar-expected-conflicts): New function. * lisp/cedet/semantic/wisent/comp.el (wisent-total-conflicts): Use it to suppress warnings about the expected number of shift/reduce conflicts.
Diffstat (limited to 'admin/grammars/python.wy')
-rw-r--r--admin/grammars/python.wy1
1 files changed, 1 insertions, 0 deletions
diff --git a/admin/grammars/python.wy b/admin/grammars/python.wy
index 082850df59c..0e926ad3636 100644
--- a/admin/grammars/python.wy
+++ b/admin/grammars/python.wy
@@ -88,6 +88,7 @@
%package wisent-python-wy
%provide semantic/wisent/python-wy
+%expectedconflicts 4
%{
(declare-function wisent-python-reconstitute-function-tag