1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-17 16:41:17 -08:00
emacs/test/manual/indent/jsx-comment-string.jsx
Jackson Ray Hamilton 9aacc443d9
Ignore comments and strings when recognizing JSX
* lisp/progmodes/js.el (js-syntax-propertize): Ignore comments and
strings.
* test/manual/indent/jsx-comment-string.jsx: New test.
2019-09-22 12:55:44 -07:00

16 lines
327 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