1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-11 10:20:33 -08:00
emacs/test/manual/indent/jsx-comment-string.jsx
Jackson Ray Hamilton 8e1c553260
Ignore comments and strings when matching JSX
* lisp/progmodes/js.el (js-jsx--matching-close-tag-pos): Ignore
comments and strings.
* test/manual/indent/jsx-comment-string.jsx: New test.
2019-12-07 13:18:00 -08:00

23 lines
410 B
JavaScript

// Local Variables:
// indent-tabs-mode: nil
// js-indent-level: 2
// End:
// The following tests go below any comments to avoid including
// misindented comments among the erroring lines.
// The JSX-like text in comments/strings should be treated like the enclosing
// syntax, not like JSX.
// <Foo>
void 0
"<Bar>"
void 0
<Chicken>
{/* <Pork> */}
<Beef attr="<Turkey>">
Yum!
</Beef>
</Chicken>