[Top][All Lists]

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

Re: Debugging SMIE for sh-script.el

From: Stefan Monnier
Subject: Re: Debugging SMIE for sh-script.el
Date: Fri, 03 Sep 2021 08:12:39 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> Not sure why we wouldn't want to treat $(cat food) as a single token?

Because tokens are "the atoms" of indentation and I think if we start
to go down this road, it will lead to disappointments in other cases

   x="<<$(cat food;
          cat litter)>>"

> Do you mean, as opposed to ${cat_food}?


> $(git rev-parse --show-toplevel)/foo --bar \
>                                      --baz

Maybe you're right.  Maybe it's OK to keep $(...) a single token when it
doesn't spread over multiple lines.  It'll prevent `smie-auto-fill` from
inserting a new line inside of it, but other than that it might work
well enough.


reply via email to

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