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

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

Re: Debugging SMIE for sh-script.el


From: Nikolay Kudryavtsev
Subject: Re: Debugging SMIE for sh-script.el
Date: Mon, 6 Sep 2021 20:24:37 +0300
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

Oh, you're right. Seems that I haven't read Kevin's last letter carefully enough. Sorry about that.

I also don't understand the discussion of treating $(cat food) as a single token, since blocks with the standard openers/closers are supposed to be returned by the smie lexer as "" when it runs into them from the outside.

Anyway, I still think that even in this case, changing sh-smie--indent-continuation is a better idea than touching the token grab code. Just to test I've coded an implementation of it <https://gist.github.com/sg2002/43bbd454da3254f4d092e2758057c372>, that behaves correctly for Kevin's use case. Needs more testing, but seems to work ok in general.



reply via email to

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