help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SMIE examples or guides


From: Stefan Monnier
Subject: Re: SMIE examples or guides
Date: Fri, 01 Jul 2016 19:09:23 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

> [
>     neat
>     {
>         nice
>     }
>     (
>         good
>     )
> ]

You want to add rules like ("[" exp "]") to your grammar, then.
Or alternatively, refine your tokenizer so it returns "" when it finds
a lone "[" or "]", i.e. only accept syntax "()" when it's part of
a token, but not when it's the whole token.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]