Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class method with Implicit Return and String Literal Kills Formatting #1233

Open
redreceipt opened this issue Apr 20, 2021 · 0 comments
Open

Comments

@redreceipt
Copy link

Tried to get this down as small as I could and show the problem although I'm not sure which part exactly is the issue. It ruins the rest of the file by turning everything "string" color. If the implicit return is on the same line, it works fine.

Requisite minimal reproducible example, formatted as plain text :

class Mapper {
  mapFn = () => 
    this.map((id) => `Id eq ${id}`).map((str) => str);
}

Screen Shot 2021-04-20 at 9 43 43 AM

Kapture 2021-04-20 at 09 37 51


Optional: concerning jsx.

PLEASE PLEASE PLEASE make sure you have properly
setup and are sourcing this plugin https://github.com/mxw/vim-jsx

WE DO NOT support JSX automatically, you need another plugin to add get this
functionality.

Make sure the bug still exists if you disable all other javascript plugins
except the one noted above, mxw/vim-jsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant