all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#19397: incorrect handling of / in a character class in js-mode
@ 2014-12-17 15:15 Paul Pogonyshev
  2014-12-23 15:54 ` Stefan Monnier
  2014-12-23 16:16 ` Stefan Monnier
  0 siblings, 2 replies; 3+ messages in thread
From: Paul Pogonyshev @ 2014-12-17 15:15 UTC (permalink / raw)
  To: 19397

[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-12-23 16:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-17 15:15 bug#19397: incorrect handling of / in a character class in js-mode Paul Pogonyshev
2014-12-23 15:54 ` Stefan Monnier
2014-12-23 16:16 ` Stefan Monnier

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.