
* 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.
13 lines
351 B
JavaScript
13 lines
351 B
JavaScript
// Local Variables:
|
|
// indent-tabs-mode: nil
|
|
// js-indent-level: 2
|
|
// End:
|
|
|
|
// The following test goes below any comments to avoid including
|
|
// misindented comments among the erroring lines.
|
|
|
|
// Properly parse/indent code with a self-closing tag inside the
|
|
// attribute of another self-closing tag.
|
|
<div>
|
|
<div attr={() => <div attr="" />} />
|
|
</div>
|