Re: [hackers][vis][PATCH] Handle quote matching in its own function

From: Silvan Jegen <s.jegen_AT_gmail.com>
Date: Mon, 15 Feb 2016 18:22:58 +0100

On Mon, Feb 15, 2016 at 05:50:12PM +0100, Marc André Tanner wrote:
> On Mon, Feb 15, 2016 at 04:01:48PM +0100, Silvan Jegen wrote:
>
> [...]
>
> What would be more interesting is to add a way to define motions and
> text objects in Lua. Integration with the LPeg based lexers should
> then be relatively easy ...

That would mean that you would call out to lua each time you want to
use one of these motions/objects, if I understand correctly.

Writing a grammar for matching these things in LPeg should be possible.
Do you think it would be worth implementing these motions/text objects in
LPeg? The main advantage I can see with this approach is that you could
create robust grammars for these motions/objects using LPeg instead of
doing some ad-hoc parsing like I did in this patch.


Cheers,

Silvan
Received on Mon Feb 15 2016 - 18:22:58 CET

This archive was generated by hypermail 2.3.0 : Mon Feb 15 2016 - 18:24:13 CET