Commit a2283cf
committed
Add extra JSX case
In JSX, a multi-line call expression should have the normal js
`commentstring`. For example:
```jsx
<div>
{hello({
foo: 'bar',
})}
</div>
```
Commenting the line with `foo: 'bar',` shouldn't use the JSX comment
style.
There are other similar cases that might fail though, for example, a
multi-line array or string, but those are even rarer cases.
Related to #221 parent 72a3f45 commit a2283cf
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| 47 | + | |
| 48 | + | |
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
| |||
0 commit comments