Closed DuBistKomisch closed 5 years ago
Thanks for the heads up, I've added some rules for fragments.
@peitalin good timing, was just trying it out, seems like a big improvement but it appears self-closing elements now mess up the typescript highlighting afterwards:
Ok, let's see if it's working now:
Seems to be working here as well!
I'd love to use this plugin but we extensively use
<></>
as an empty element return and it breaks the highlighting for the rest of the file. It's relatively new syntax, see here: https://reactjs.org/docs/fragments.html#short-syntax. Works fine for my coworkers using VS Code of course. :stuck_out_tongue:I was going to try fixing this myself but the regexes are pretty confusing. I notice this is kind of a fork of a fork of a fork, perhaps one of them has fixed it already and we can just pull in some updates?