MaxMEllon / vim-jsx-pretty

:flashlight: [Vim script] JSX and TSX syntax pretty highlighting for vim.
MIT License
969 stars 38 forks source link

Function declaration's closing bracket highlighted as error #145

Closed andresrodco closed 3 years ago

andresrodco commented 3 years ago

When any but the last destructuring key is surrounded by quotes, the error ocurs:

Screen Shot 2020-12-24 at 10 40 52

When any but the last destructuring key is NOT surrounded by quotes, the highlight is ok:

Screen Shot 2020-12-24 at 10 42 31

I've managed to research a little bit the issue and this is what I found:

I'm not very savvy in regular expressions or syntax highlight debugging so I really don't know where to start looking for a fix. Hope someone can have an idea about fixing this.

andresrodco commented 3 years ago

Closing this bug and creating it in vim-javascript. I think I have a solution for that.

yuezk commented 3 years ago

@andresrodco You can use yuezk/vim-js as the alternative to vim-javascript. I believe it won't have this problem and I'm more familiar with that plugin.

image

andresrodco commented 3 years ago

Thanks @yuezk That plugin worked as expected!