]> git.eshelyaron.com Git - emacs.git/commit
Backport: js--re-search-backward-inner: Fix infloop
authorDmitry Gutov <dgutov@yandex.ru>
Fri, 1 Feb 2019 00:01:39 +0000 (03:01 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 25 Feb 2019 16:14:20 +0000 (19:14 +0300)
commit1dff09739346037a588a3b9290800c09a9b3409a
tree4370d5c9e96f2185c8c34e513b6abbfdeac81385
parentdee3cdc50415a3fa45c6b043590d99adf47c7c69
Backport: js--re-search-backward-inner: Fix infloop

Fix JS indentation infloop reported in
https://github.com/mooz/js2-mode/issues/513.

* lisp/progmodes/js.el (js--re-search-backward-inner): Account for
multiline string literals.
* test/manual/indent/js.js: New test example.

(cherry picked from commit b01a4295c2f9bb58858880e4e28b05cc8396791c)
lisp/progmodes/js.el
test/manual/indent/js.js