From: "Jostein Kjønigsen" <jostein@secure.kjonigsen.net>
To: emacs-devel@gnu.org
Cc: Stefan Monnier <monnier@IRO.UMontreal.CA>
Subject: Re: Regarding Emacs, js.el, template-strings and syntax-tables
Date: Thu, 24 Aug 2017 14:17:51 +0200 [thread overview]
Message-ID: <1503577071.101466.1083595896.28A29955@webmail.messagingengine.com> (raw)
In-Reply-To: <1503576818.100758.1083575560.7079FD9A@webmail.messagingengine.com>
[-- Attachment #1: Type: text/plain, Size: 829 bytes --]
> In sh-script, we use syntax-propertize to make sure the whole
> string and> its contents is all considered as a string and nothing else. This was> the simplest solution and probably corresponds to the current behavior> of js.el (and typescript.el) as well.
I'd also like to add that I've been told syntax-propertize is a property
of font-lock and relying on it for correct operation on syntax-tables is
... not entirely guaranteed.
Basically, if a user disables font-lock for whatever reason (maybe
scripted automation?), you can no longer rely on the syntax-properties
to be correct.
It might be a bigger problem in theory than in practice, but again
it represents yet another *inaccuracy* in the syntax-model and
analysis of it.
It would be nice to get this stuff cleaned up.
--
Jostein Kjønigsen
[-- Attachment #2: Type: text/html, Size: 1408 bytes --]
next prev parent reply other threads:[~2017-08-24 12:17 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-24 6:56 Regarding Emacs, js.el, template-strings and syntax-tables Jostein Kjønigsen
2017-08-24 10:53 ` Stefan Monnier
2017-08-24 12:13 ` Jostein Kjønigsen
2017-08-24 12:17 ` Jostein Kjønigsen [this message]
2017-08-24 13:47 ` Stefan Monnier
2017-08-24 14:04 ` Stefan Monnier
2017-08-24 12:31 ` Anders Lindgren
2017-08-24 14:20 ` Stefan Monnier
2017-08-27 16:37 ` Dmitry Gutov
2017-08-24 14:22 ` Stefan Monnier
2017-08-24 15:19 ` Anders Lindgren
2017-08-29 13:36 ` Stefan Monnier
2017-08-29 13:49 ` Anders Lindgren
2017-08-30 2:22 ` Richard Stallman
2017-09-01 12:14 ` Anders Lindgren
2017-09-04 23:40 ` Dmitry Gutov
2017-09-05 7:00 ` Anders Lindgren
2017-09-05 8:25 ` Dmitry Gutov
2017-09-05 9:30 ` Anders Lindgren
2017-09-05 9:53 ` Dmitry Gutov
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1503577071.101466.1083595896.28A29955@webmail.messagingengine.com \
--to=jostein@secure.kjonigsen.net \
--cc=emacs-devel@gnu.org \
--cc=jostein@kjonigsen.net \
--cc=monnier@IRO.UMontreal.CA \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.