diff options
| author | Lars Ingebrigtsen | 2021-11-20 10:20:43 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2021-11-20 10:21:00 +0100 |
| commit | bc99604c7ac2c6673615d0ecac4d233bf6a4ff16 (patch) | |
| tree | 0dd2ecacb90b56bb7e95eab16b191b7fc02f94e0 | |
| parent | 9f06977782ef58fa40bed69368ab92a080f035ec (diff) | |
| download | emacs-bc99604c7ac2c6673615d0ecac4d233bf6a4ff16.tar.gz emacs-bc99604c7ac2c6673615d0ecac4d233bf6a4ff16.zip | |
Fix another narrow-to-defun problem in js-mode
* lisp/progmodes/js.el (js--function-prologue-beginning): Fix typo
in looking-back form (bug#51926).
| -rw-r--r-- | lisp/progmodes/js.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index e5e83beff6c..9303f1ecb91 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el | |||
| @@ -1247,7 +1247,7 @@ LIMIT defaults to point." | |||
| 1247 | (save-excursion | 1247 | (save-excursion |
| 1248 | (goto-char orig-match-start) | 1248 | (goto-char orig-match-start) |
| 1249 | (when (looking-back "\\_<async\\_>[ \t\n]+" | 1249 | (when (looking-back "\\_<async\\_>[ \t\n]+" |
| 1250 | (- (point) 3)) | 1250 | (- (point) 30)) |
| 1251 | (setq orig-match-start (match-beginning 0)))) | 1251 | (setq orig-match-start (match-beginning 0)))) |
| 1252 | (make-js--pitem | 1252 | (make-js--pitem |
| 1253 | :paren-depth orig-depth | 1253 | :paren-depth orig-depth |