GNU bug report logs - #39277
26.3; Tcl font lock does not understand quoting

Previous Next

Package: emacs;

Reported by: Hadrien Lacour <hadrien.lacour <at> posteo.net>

Date: Sat, 25 Jan 2020 10:01:02 UTC

Severity: normal

Tags: fixed

Found in version 26.3

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #33 received at 39277 <at> debbugs.gnu.org (full text, mbox):

From: Hadrien Lacour <hadrien.lacour <at> posteo.net>
To: 39277 <at> debbugs.gnu.org
Subject: bug#39277
Date: Tue, 27 Oct 2020 16:24:48 +0100
Sorry for not really contributing, I must provid the excuse that I don't have
enough time or energy right now.

About Tcl syntax rules, Tcl(3tcl) (or Tcl(n) on gentoo) explains it simply:
...
[4] Double quotes.
	If the first character of a word is double-quote (“"”) then the word is
	terminated by the next double-quote character.  If semi-colons, close
	brackets, or white space characters (including newlines) appear between the
	quotes then they are treated as ordinary characters and included in the
	word.  Command substitution, variable substitution, and backslash
	substitution are performed on the characters between the quotes as
	described below. The double-quotes are not retained as part of the word.
...
[6] Braces.
	If the first character of a word is an open brace (“{”) and rule [5] does
	not apply, then the word is terminated by the matching close brace (“}”).
	Braces nest within the word: for each additional open brace there must be
	an additional close brace (however, if an open brace or close brace within
	the word is quoted with a backslash then it is not counted in locating the
	matching close brace).  No substitutions are performed on the characters
	between the braces except for backslash-newline substitutions described
	below, nor do semi-colons, newlines, close brackets, or white space receive
	any special interpretation.  The word will consist of exactly the
	characters between the outer braces, not including the braces themselves.
...

To put simply, braces act like sh's single quotes and double quotes are
basically the same (only $ or [] is substituted).




This bug report was last modified 4 years and 259 days ago.

Previous Next


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