[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#55796: Command highlighting deactivated on spaces
From: |
goncholden |
Subject: |
bug#55796: Command highlighting deactivated on spaces |
Date: |
Sun, 05 Jun 2022 16:30:54 +0000 |
------- Original Message -------
On Monday, June 6th, 2022 at 2:26 AM, Lars Ingebrigtsen <larsi@gnus.org> wrote:
> goncholden goncholden@protonmail.com writes:
>
> > I am using sh-mode and have noticed that using
> >
> > delim=$(numseq-delim "$2")
> >
> > highlights the command numseq-delim
> >
> > But when there are any spaces between $( and the command name
> > numseq-delim, the highlighting gets deactivated.
>
>
> You don't say which Emacs version this is for, or what mode you're using
> or what language this is.
>
> In Emacs 29, in shell-script-mode, numseq-delim receives no highlights
> with or without a space after the $(.
I am using GNU Emacs 27.2 with sh-script. I am using $() to run commands from
a bash script. The command name gets highlighted if there are no spaces, but
no highlighting is done if there is a preceeding space.
Actually, it was good to have highlighting of the command, even when there is a
space between $( and the command name.
> --
> (domestic pets only, the antidote for overdose, milk.)
> bloggy blog: http://lars.ingebrigtsen.no
>