]> git.eshelyaron.com Git - emacs.git/commit
Fix counting of nested self-closing JSXOpeningElements
authorJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Tue, 26 Mar 2019 03:39:48 +0000 (20:39 -0700)
committerJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Tue, 9 Apr 2019 05:48:23 +0000 (22:48 -0700)
commit16669d7c5d5a0dfadf672f8359e431ef81044a23
tree55d370ebbabd90345a34f081772a5a1ef81e7021
parent84b1cfbc2d6b9236913a18ed192798fd530911db
Fix counting of nested self-closing JSXOpeningElements

* lisp/progmodes/js.el (js-jsx--matching-close-tag-pos): Fix bug where
self-closing JSXOpeningElements might be missed if one was nested
within another.

* test/manual/indent/jsx-self-closing.jsx: Add test for bug concerning
self-closing JSXOpeningElement counting.
lisp/progmodes/js.el
test/manual/indent/jsx-self-closing.jsx [new file with mode: 0644]