]> git.eshelyaron.com Git - emacs.git/commit
Split JSX indentation calculation into several functions
authorJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Wed, 27 Mar 2019 03:14:46 +0000 (20:14 -0700)
committerJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Tue, 9 Apr 2019 05:48:23 +0000 (22:48 -0700)
commitafec4511cf5c336eaf9f8bb1425bf2dd1fc12740
tree35b760f6eb48099f7f982b65cb733b8a9dabaa92
parent55c80d43a972d3e126c173745c57a0a383bd3ad4
Split JSX indentation calculation into several functions

* lisp/progmodes/js.el (js-jsx--contextual-indentation)
(js-jsx--expr-attribute-pos, js-jsx--expr-indentation): Extract logic
from js-jsx--indentation, and improve the logic’s documentation.
(js-jsx--indentation): Simplify by splitting into several
functions (see above) and improve the logic’s documentation.
lisp/progmodes/js.el