]> git.eshelyaron.com Git - emacs.git/commit
peg-tests.el: Fix test failures
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 13 Apr 2024 19:35:46 +0000 (15:35 -0400)
committerEshel Yaron <me@eshelyaron.com>
Sun, 14 Apr 2024 17:11:29 +0000 (19:11 +0200)
commit73bbf8d31249c786e406f03faac05c48bdc65ecf
treed052dc8f37b85d22b25bf44493f6dfa6e3a889f0
parent938c345b12a75fc5900f0368e303f850e45f0c95
peg-tests.el: Fix test failures

* lisp/progmodes/peg.el (peg-parse): Refine heuristic since unknown
terminals are resolved at run-time rather than compile-time now.
(peg--macroexpand) <stack-action>: Avoid generating a `let` with an
empty body.
(peg--translate-rule-body): Adjust to name change of
`macroexp-warn-and-return` and the fact that it's always available.

* test/lisp/progmodes/peg-tests.el (peg-parse-string):
Add `indent` declaration.
(peg-test): Check that the compiler emits the warnings we expect.

(cherry picked from commit 7b94c6b00b287d2b69d466380a05de7e0ec21ee9)
lisp/progmodes/peg.el
test/lisp/progmodes/peg-tests.el