mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-17 16:41:17 -08:00
* lisp/progmodes/js.el (js-syntax-propertize): Ignore comments and strings. * test/manual/indent/jsx-comment-string.jsx: New test.
16 lines
327 B
JavaScript
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
|