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

Fails when the opening bracket is in a quoted string #24

Open
arkku opened this issue Jan 30, 2020 · 1 comment
Open

Fails when the opening bracket is in a quoted string #24

arkku opened this issue Jan 30, 2020 · 1 comment

Comments

@arkku
Copy link

arkku commented Jan 30, 2020

Given code like

printf("%s {",

vim-closer will falsely insert }), instead of the correct )

@arkku
Copy link
Author

arkku commented Jan 30, 2020

A possible fix would be to make a configurable set of quotes per filetype and not consider brackets inside those.

Or a simple, cautious, fix would be to have an option to only close brackets when they are the last thing on the line (in which case the ( would also be left open, but IMO that would be the lesser evil).

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