unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "shynur ." <one.last.kiss@outlook.com>,
	Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 72745@debbugs.gnu.org
Subject: bug#72745: `bash-mode` doesn't recognize comments inside command substitution
Date: Sat, 24 Aug 2024 12:19:37 +0300	[thread overview]
Message-ID: <8634munuqe.fsf@gnu.org> (raw)
In-Reply-To: <PH0PR11MB747065F4E28039CFB034F366D78E2@PH0PR11MB7470.namprd11.prod.outlook.com> (one.last.kiss@outlook.com)

> From: "shynur ." <one.last.kiss@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?





  reply	other threads:[~2024-08-24  9:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-21 13:02 bug#72745: `bash-mode` doesn't recognize comments inside command substitution shynur .
2024-08-24  9:19 ` Eli Zaretskii [this message]
2024-08-24 15:12   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-24 15:28     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8634munuqe.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=72745@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=one.last.kiss@outlook.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).