diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/manual/indent/jsx-unclosed-2.jsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/manual/indent/jsx-unclosed-2.jsx b/test/manual/indent/jsx-unclosed-2.jsx index 8db25aa67f1..9d80a2e9ae2 100644 --- a/test/manual/indent/jsx-unclosed-2.jsx +++ b/test/manual/indent/jsx-unclosed-2.jsx | |||
| @@ -6,10 +6,15 @@ | |||
| 6 | // The following tests go below any comments to avoid including | 6 | // The following tests go below any comments to avoid including |
| 7 | // misindented comments among the erroring lines. | 7 | // misindented comments among the erroring lines. |
| 8 | 8 | ||
| 9 | // Don’t misinterpret equality operators as JSX. | 9 | // Don’t misinterpret inequality operators as JSX. |
| 10 | for (; i < length;) void 0 | 10 | for (; i < length;) void 0 |
| 11 | if (foo > bar) void 0 | 11 | if (foo > bar) void 0 |
| 12 | 12 | ||
| 13 | // Don’t misintrepet inequalities within JSX, either. | ||
| 14 | <div> | ||
| 15 | {foo < bar} | ||
| 16 | </div> | ||
| 17 | |||
| 13 | // Don’t even misinterpret unary operators as JSX. | 18 | // Don’t even misinterpret unary operators as JSX. |
| 14 | if (foo < await bar) void 0 | 19 | if (foo < await bar) void 0 |
| 15 | while (await foo > bar) void 0 | 20 | while (await foo > bar) void 0 |