]> git.eshelyaron.com Git - emacs.git/commit
Optimize js-jsx--enclosing-tag-pos
authorJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Sun, 7 Apr 2019 20:25:57 +0000 (13:25 -0700)
committerJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Tue, 9 Apr 2019 05:48:24 +0000 (22:48 -0700)
commit98e36a3e31da10bf230743d285544305f730b60d
treefce1ee516b743e55f21fc28d6c29771e7c91f107
parent7b2e3c60d081597adb7feaaabfee8cb8de62289b
Optimize js-jsx--enclosing-tag-pos

* lisp/progmodes/js.el (js-jsx--enclosing-tag-pos): Update docstring
to be more precise.  Also, remember close tag positions after they’ve
been calculated once to avoid many redundant calls to
js-jsx--matching-close-tag-pos.
(js-jsx--text-properties): Ensure js-jsx-close-tag-pos text properties
get cleaned up, too.
lisp/progmodes/js.el