]> git.eshelyaron.com Git - emacs.git/commit
Fix `narrow-to-defun' in "async function" in js-mode
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 18 Nov 2021 10:25:18 +0000 (11:25 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 18 Nov 2021 10:25:18 +0000 (11:25 +0100)
commit6cad3dc75e19669ba43bdc69a617ad14dec5643f
treee073315953736895aac592bdbfe80798d3dd3a6a
parent1625123e4ceb8d23eef00f3944341ecf0a75dc77
Fix `narrow-to-defun' in "async function" in js-mode

* lisp/progmodes/js.el (js--plain-method-re):
(js--function-prologue-beginning):
(js--ensure-cache): Allow "async" before "function" (bug#51926).
This makes `narrow-to-defun' work as expected.
lisp/progmodes/js.el