Open
Description
When any but the last destructuring key is surrounded by quotes, the error occurs:
When any but the last destructuring key is NOT surrounded by quotes, the highlight is ok:
I've managed to research a little bit the issue and this is what I found:
- This happens in a .js file.
- This happens to the closing bracket of a function declaration. Doesn't matter if it's exported or not.
- This happens only when inside that function there's a nested object destructuring statement AND any of the keys but the last one is surrounded by quotes, either single, double, or backticks (see images above).
- The result of SyntaxAttr for that closing bracket is group: jsParensError->Error guifg=255(255) guibg=203(203), which is declared in the syntax/javascript.vim file.
- I'm using Vim Polyglot with no additional configuration for javascript files.
Metadata
Metadata
Assignees
Labels
No labels