[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#45390: Shell-script mode doesn’t like redirection at beginning of co
From: |
Lars Ingebrigtsen |
Subject: |
bug#45390: Shell-script mode doesn’t like redirection at beginning of command |
Date: |
Tue, 07 Jun 2022 14:02:52 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Dario Gjorgjevski <dario.gjorgjevski@gmail.com> writes:
> The “for” and “echo” in the following example are not font-locked in
> shell-script mode, despite being syntactically valid. (From my
> experience, the “>&2 echo ...” idiom is quite common in practice, too.)
>
> >/dev/null for i in {1..5} ; do
> echo $i
> done
> >&2 echo 'Error!'
>
> Additionally, the “for” and its “done” are not matched so the SMIE
> grammar also needs fixing.
(I'm going through old bug reports that unfortunately weren't resolved
at the time.)
I'm unable to reproduce most of this -- do/done seem to be matched, and
echo is font-locked. (I tried this in Emacs 25.1 -> Emacs 29.) The one
thing I can reproduce is the missing font-locking of the "for" keyword.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#45390: Shell-script mode doesn’t like redirection at beginning of command,
Lars Ingebrigtsen <=