From: Paul Pogonyshev <pogonyshev@gmail.com>
To: 19397@debbugs.gnu.org
Subject: bug#19397: incorrect handling of / in a character class in js-mode
Date: Wed, 17 Dec 2014 16:15:47 +0100 [thread overview]
Message-ID: <CAG7BparL9kE+kLWuyeBRs=w-GYAa1=br+zrKGh0jap0ywZi4nQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 406 bytes --]
Try to type the following code in a JS buffer:
function test ()
{
return /[/]/.test ('/')
}
This function is legal in JS and returns true. However, Emacs is badly
confused: indentation, syntax highlighting, C-M-f over the regex all don't
work correctly.
Note that while _this_ regex is silly, it is based on a real-life one that
uses a character class with a slash in it.
Recent Emacs trunk.
Paul
[-- Attachment #2: Type: text/html, Size: 563 bytes --]
next reply other threads:[~2014-12-17 15:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-17 15:15 Paul Pogonyshev [this message]
2014-12-23 15:54 ` bug#19397: incorrect handling of / in a character class in js-mode Stefan Monnier
2014-12-23 16:16 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAG7BparL9kE+kLWuyeBRs=w-GYAa1=br+zrKGh0jap0ywZi4nQ@mail.gmail.com' \
--to=pogonyshev@gmail.com \
--cc=19397@debbugs.gnu.org \
/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.