]> git.eshelyaron.com Git - emacs.git/commit
Recognize JS regexp literals more correctly
authorTom Tromey <tom@tromey.com>
Sun, 5 Feb 2017 18:40:18 +0000 (11:40 -0700)
committerTom Tromey <tom@tromey.com>
Sat, 11 Feb 2017 19:30:32 +0000 (12:30 -0700)
commit862d6438cfa6c6c035033697751f3d002357b024
treecc7eab8482c2fe5fabb37660d1d5a6353aefd159
parentc2e19a73401eb37d5c13f6c8589dc1e5d706d239
Recognize JS regexp literals more correctly

Bug#25529
* lisp/progmodes/js.el (js--syntax-propertize-regexp-regexp): New
constant.
(js-syntax-propertize-regexp): Use it.  Remove "end" argument.
(js--syntax-propertize-regexp-syntax-table): Remove.
(js-syntax-propertize): Update.
* test/lisp/progmodes/js-tests.el (js-mode-regexp-syntax-bug-25529):
New test.
lisp/progmodes/js.el
test/lisp/progmodes/js-tests.el