diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/manual/indent/jsx-unclosed-2.jsx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/manual/indent/jsx-unclosed-2.jsx b/test/manual/indent/jsx-unclosed-2.jsx index 9d80a2e9ae2..be0a605503f 100644 --- a/test/manual/indent/jsx-unclosed-2.jsx +++ b/test/manual/indent/jsx-unclosed-2.jsx @@ -19,6 +19,10 @@ if (foo > bar) void 0 if (foo < await bar) void 0 while (await foo > bar) void 0 +<div> + {foo < await bar} +</div> + // Allow unary keyword names as null-valued JSX attributes. // (As if this will EVER happen…) <Foo yield> @@ -40,3 +44,15 @@ while (await foo > bar) void 0 // “-” may be used in a JSXAttribute’s name. <Foo a-b-c="" x-y-z="" /> + +// Weird spaces should be tolerated. +< div > + < div > + < div + attr="" + / > + < div + attr="" + / > + < / div> +< / div > |