Commit acab35cc authored by Jackson Ray Hamilton's avatar Jackson Ray Hamilton Committed by Marcin Borkowski

Add tests for miscellaneous JSX parsing feats

* test/manual/indent/jsx.jsx: Add tests for JSXMemberExpression names
and JSXOpeningFragment/JSXClosingFragment support (already supported).
parent ae0ee9bc
Pipeline #1089 failed with stage
in 60 minutes and 2 seconds
......@@ -93,6 +93,32 @@ return (
} />
)
// JSXMemberExpression names are parsed/indented:
<Foo.Bar>
<div>
<Foo.Bar>
Hello World!
</Foo.Bar>
<Foo.Bar>
<div>
</div>
</Foo.Bar>
</div>
</Foo.Bar>
// JSXOpeningFragment and JSXClosingFragment are parsed/indented:
<>
<div>
<>
Hello World!
</>
<>
<div>
</div>
</>
</div>
</>
// Indent void expressions (no need for contextual parens / commas)
// (https://github.com/mooz/js2-mode/issues/140#issuecomment-166250016).
<div className="class-name">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment