unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Carlos Pita <carlosjosepita@gmail.com>
To: Andreas Schwab <schwab@suse.de>
Cc: occitan@esperanto.org, 18379@debbugs.gnu.org
Subject: bug#18379: 24.3.93; Bash font lock: pretty inconsistent treatment of `` and $()
Date: Mon, 01 Sep 2014 16:27:58 -0300	[thread overview]
Message-ID: <87egvv2la9.fsf@gmail.com> (raw)
In-Reply-To: <mailman.8037.1409583857.1147.bug-gnu-emacs@gnu.org> (Andreas Schwab's message of "Mon, 01 Sep 2014 17:03:32 +0200")

Hi Andreas,

> They have different quoting rules, with `...` using rules similar to
> double quotes, whereas $(...) is a fully nesting construct.

True, but both contains bash code for a subshell which is far from being
an uninterpreted string. IMO the important distintion to highlight is
"intepreted code" vs "uninterpreted string", not the ability to nest vs
the inability to nest (due to different quoting rules).

I've been checking how other editors do this. vim works the way I'm
proposing, while scintilla based editors do it the emacs way. Regarding
my second observation before, neither vim nor scintilla treat the
leading word in a command substution in any special way, which I think
is sensible.

Cheers
--
Carlos





  parent reply	other threads:[~2014-09-01 19:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-01 14:17 bug#18379: 24.3.93; Bash font lock: pretty inconsistent treatment of `` and $() Carlos Pita
2014-09-01 15:03 ` Andreas Schwab
     [not found] ` <mailman.8037.1409583857.1147.bug-gnu-emacs@gnu.org>
2014-09-01 19:27   ` Carlos Pita [this message]
2014-09-03  0:23 ` Stefan Monnier

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=87egvv2la9.fsf@gmail.com \
    --to=carlosjosepita@gmail.com \
    --cc=18379@debbugs.gnu.org \
    --cc=occitan@esperanto.org \
    --cc=schwab@suse.de \
    /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).