-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Regression in formatting for JS template strings #107571
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
Comments
@llvm/issue-subscribers-clang-format Author: kadir çetinkaya (kadircet)
Actual formatting:
```
# clang-format a.ts
clang-format a.tsFOOOOOOOOFOOFOOFOOFOO____FOO_FOO_FO_FOO_FOOO -
|
@gedare can you look into this? |
Yes, I will. |
The helper to check if a token is in a template string scans too far backward. It should stop if a different scope is found. Fixes llvm#107571
The helper to check if a token is in a template string scans too far backward. It should stop if a different scope is found. Fixes #107571
Actual formatting:
Expected formatting:
i.e. no extra indentation for the inner subexpression, as that's the formatting we got without template strings:
The text was updated successfully, but these errors were encountered: