mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-11 10:20:33 -08:00
* lisp/progmodes/js.el (js-jsx--matching-close-tag-pos): Ignore comments and strings. * test/manual/indent/jsx-comment-string.jsx: New test.
23 lines
410 B
JavaScript
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>
|