Skip to content

call_arg_parentheses = always not working for string arguments when quote_style = double #186

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

Closed
alex-courtis opened this issue Sep 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@alex-courtis
Copy link
Contributor

Possibly related: #179

Correct

call_arg_parentheses = always functions correctly, adding parentheses to all calls:

call_arg_parentheses = always
foo 'a'
foo "b"
foo {}

is formatted as

foo('a')
foo("b")
foo({})

Incorrect

Adding a quote_style results in incorrect formatting for strings only:

quote_style = double
call_arg_parentheses = always
foo 'a'
foo "b"
foo {}

is formatted as

foo"a"
foo"b"
foo({})
@CppCXY CppCXY added the bug Something isn't working label Sep 29, 2024
@CppCXY CppCXY closed this as completed in 4ab859f Sep 29, 2024
alex-courtis added a commit to alex-courtis/EmmyLuaCodeStyle that referenced this issue Sep 29, 2024
@alex-courtis
Copy link
Contributor Author

Thank you @CppCXY for the fast fix - it works perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants