aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJackson Ray Hamilton2019-03-24 13:17:12 -0700
committerJackson Ray Hamilton2019-04-08 22:48:23 -0700
commit84b1cfbc2d6b9236913a18ed192798fd530911db (patch)
tree8d96fb77965f2f0e9025e38adbe597e95a2352ab /src
parentd9d1bb2b07750f3b2f2a9f8fa3d7aa1a5ec5038e (diff)
downloademacs-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')
0 files changed, 0 insertions, 0 deletions