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

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

[debbugs-tracker] bug#19397: closed (incorrect handling of / in a charac


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#19397: closed (incorrect handling of / in a character class in js-mode)
Date: Tue, 23 Dec 2014 16:17:02 +0000

Your message dated Tue, 23 Dec 2014 11:16:31 -0500
with message-id <address@hidden>
and subject line Re: bug#19397: incorrect handling of / in a character class in 
js-mode
has caused the debbugs.gnu.org bug report #19397,
regarding incorrect handling of / in a character class in js-mode
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
19397: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19397
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 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

--- End Message ---
--- Begin Message --- Subject: Re: bug#19397: incorrect handling of / in a character class in js-mode Date: Tue, 23 Dec 2014 11:16:31 -0500 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)
Version: 25.1

> function test ()
> {
>     return /[/]/.test ('/')
> }

OK, I installed a patch into master which should handle the "unescaped slash in
character classes".  Together with the previous patch installed in
emacs-24, it should handle at least the above case.


        Stefan


--- End Message ---

reply via email to

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