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

Preserve single vs double quoted strings? #2

Open
dnwe opened this issue Oct 19, 2021 · 0 comments
Open

Preserve single vs double quoted strings? #2

dnwe opened this issue Oct 19, 2021 · 0 comments

Comments

@dnwe
Copy link

dnwe commented Oct 19, 2021

Thanks for publishing your fmt tool, it has proven very usedful for keeping groovy files clean.

One question I had was whether the grammar would support preserving the existing single vs double quotedness of strings? Currently the formatter will always convert to double quotes, even if that breaks syntax when (e.g.) the current string is single quoted because it contains an un-escaped double quote

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