GNU bug report logs - #72745
`bash-mode` doesn't recognize comments inside command substitution

Previous Next

Package: emacs;

Reported by: "shynur ." <one.last.kiss <at> outlook.com>

Date: Wed, 21 Aug 2024 13:09:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: "shynur ." <one.last.kiss <at> outlook.com>, Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 72745 <at> debbugs.gnu.org
Subject: bug#72745: `bash-mode` doesn't recognize comments inside command substitution
Date: Sat, 24 Aug 2024 12:19:37 +0300
> From: "shynur ." <one.last.kiss <at> outlook.com>
> Date: Wed, 21 Aug 2024 13:02:24 +0000
> 
> Reproduce:
>   1. echo -e 'echo $(echo 42  # print 42)\n)' > /tmp/a.bash
>      Content of `/tmp/a.bash`:
>           echo $(echo 42  # print 42)                                                                                         
>           )
>   2. emacs -Q, version 29.4
>   3. eval: (set-face-italic font-lock-comment-face t)
>   4. Open file `/tmp/a.bash`.
> 
> Only the first `)` is italic; "# print 42" is not.

I'm not sure this is not the right behavior.

Does anyone else have an opinion here?




This bug report was last modified 1 year and 12 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.