
* test/manual/indent/js-jsx-quote.js: Renamed to “jsx-quote.jsx”. * test/manual/indent/js-jsx-unclosed-1.js: Renamed to “jsx-unclosed-1.jsx”. * test/manual/indent/js-jsx-unclosed-2.js: Renamed to “jsx-unclosed-2.jsx”. * test/manual/indent/js-jsx.js: Renamed to “jsx.jsx”. * test/manual/indent/jsx-quote.jsx: Renamed from “js-jsx-quote.js”. * test/manual/indent/jsx-unclosed-1.jsx: Renamed from “js-jsx-unclosed-1.js”. * test/manual/indent/jsx-unclosed-2.jsx: Renamed from “js-jsx-unclosed-2.js”. * test/manual/indent/jsx.jsx: Renamed from “js-jsx.js”.
16 lines
510 B
JavaScript
16 lines
510 B
JavaScript
// JSX text node values should be strings, but only JS string syntax
|
|
// is considered, so quote marks delimit strings like normal, with
|
|
// disastrous results (https://github.com/mooz/js2-mode/issues/409).
|
|
function Bug() {
|
|
return <div>C'est Montréal</div>;
|
|
}
|
|
function Test(foo = /'/,
|
|
bar = 123) {}
|
|
|
|
// This test is in a separate file because it can break other tests
|
|
// when indenting the whole buffer (not sure why).
|
|
|
|
// Local Variables:
|
|
// indent-tabs-mode: nil
|
|
// js-indent-level: 2
|
|
// End:
|