bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#19397: incorrect handling of / in a character class in js-mode


From: Paul Pogonyshev
Subject: bug#19397: incorrect handling of / in a character class in js-mode
Date: Wed, 17 Dec 2014 16:15:47 +0100

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]