diff options
| author | Jackson Ray Hamilton | 2019-03-24 13:17:12 -0700 |
|---|---|---|
| committer | Jackson Ray Hamilton | 2019-04-08 22:48:23 -0700 |
| commit | 84b1cfbc2d6b9236913a18ed192798fd530911db (patch) | |
| tree | 8d96fb77965f2f0e9025e38adbe597e95a2352ab /src/bytecode.c | |
| parent | d9d1bb2b07750f3b2f2a9f8fa3d7aa1a5ec5038e (diff) | |
| download | emacs-84b1cfbc2d6b9236913a18ed192798fd530911db.tar.gz emacs-84b1cfbc2d6b9236913a18ed192798fd530911db.zip | |
Indent broken arrow function bodies as an N+1th arg
* lisp/progmodes/js.el (js--line-terminating-arrow-re): Revise regexp
for use with re-search-backward.
(js--looking-at-broken-arrow-function-p): Remove.
(js--broken-arrow-terminates-line-p): Replacement for
js--looking-at-broken-arrow-function-p. Don’t consider whether an
arrow appears at point (in an arglist); instead, just look for an
arrow that terminates the line.
(js--proper-indentation): Use js--broken-arrow-terminates-line-p.
* test/manual/indent/js.js: Add test for a broken arrow as an N+1th
arg.
Diffstat (limited to 'src/bytecode.c')
0 files changed, 0 insertions, 0 deletions