• Jackson Ray Hamilton's avatar
    Indent arrows’ expression bodies like function bodies (Bug#25904) · 21eef9fa
    Jackson Ray Hamilton authored
    * lisp/progmodes/js.el (js--continued-expression-p): Don’t confuse
    ‘=>’ for a ‘>’ operator.
    (js--line-terminating-arrow-re): New variable.
    (js--looking-at-broken-arrow-function-p): New function.
    (js--proper-indentation): Don’t align arrow functions’ expression
    bodies starting on new lines like list continuations, instead align
    them like function bodies (js-indent-align-list-continuation need not
    be nil).
    
    * test/manual/indent/js.js: Add test for Bug#25904.
    Co-authored-by: default avatarFelipe Ochoa <felipe@fov.space>
    21eef9fa
Name
Last commit
Last update
..
cedet Loading commit data...
etags Loading commit data...
indent Loading commit data...
BidiCharacterTest.txt Loading commit data...
biditest.el Loading commit data...
image-size-tests.el Loading commit data...
redisplay-testsuite.el Loading commit data...
rmailmm.el Loading commit data...
scroll-tests.el Loading commit data...