[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#59345: 28.2; peg.el: syntax-class PEX does not advance point
From: |
Michael Heerdegen |
Subject: |
bug#59345: 28.2; peg.el: syntax-class PEX does not advance point |
Date: |
Fri, 18 Nov 2022 07:16:38 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Sean Devlin <spd@toadstyle.org> writes:
> In version 1.0 of peg.el, there is a PEX to match the syntax class of
> the character at point. I expected it to advance the point after
> recognizing the correct class, but it seems that it does not.
Yes, I too think this is a bug.
PEGs that match something after the char class matching part even fail,
which is definitely not correct: compare in a buffer containing " a":
(peg-run (peg (* [blank]) "a"))
vs.
(peg-run (peg (* (syntax-class whitespace)) "a"))
The fist one matches up to the "a", the seconds doesn't, but should.
I CC Helmut Eller, the author of peg.el.
Michael.
- bug#59345: 28.2; peg.el: syntax-class PEX does not advance point, Sean Devlin, 2022/11/17
- bug#59345: 28.2; peg.el: syntax-class PEX does not advance point,
Michael Heerdegen <=
- bug#59345: 28.2; peg.el: syntax-class PEX does not advance point, Helmut Eller, 2022/11/28
- bug#59345: 28.2; peg.el: syntax-class PEX does not advance point, Michael Heerdegen, 2022/11/28
- bug#59345: 28.2; peg.el: syntax-class PEX does not advance point, Eric Abrahamsen, 2022/11/28
- bug#59345: 28.2; peg.el: syntax-class PEX does not advance point, Eric Abrahamsen, 2022/11/28
- bug#59345: 28.2; peg.el: syntax-class PEX does not advance point, Stefan Monnier, 2022/11/28
- bug#59345: 28.2; peg.el: syntax-class PEX does not advance point, Michael Heerdegen, 2022/11/29
- bug#59345: 28.2; peg.el: syntax-class PEX does not advance point, Eric Abrahamsen, 2022/11/29