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
[SR-14206] infix operator
is not supported by swift-format
#311
Labels
Comments
This appears to parse correctly in .build/debug/swift-format <<'EOF'
infix operator || : LogicalDisjunctionPrecedence, Bool
EOF Output:
We should leave a space between the operator and colon, and the type/protocol list after the precedence group is having its interior spaces removed (which makes sense, given the less-than-public nature of that feature). |
allevato
added a commit
to allevato/swift-format
that referenced
this issue
Sep 16, 2022
Also, add a space between the operator and the colon; it should have always been there, for consistency with `func #OP# (...)`. Fixes apple#311.
allevato
added a commit
to allevato/swift-format
that referenced
this issue
Sep 16, 2022
Also, add a space between the operator and the colon; it should have always been there, for consistency with `func #OP# (...)`. Fixes apple#311.
allevato
added a commit
to allevato/swift-format
that referenced
this issue
Sep 16, 2022
Also, add a space between the operator and the colon; it should have always been there, for consistency with `func #OP# (...)`. Fixes apple#311.
allevato
added a commit
to allevato/swift-format
that referenced
this issue
Sep 16, 2022
Also, add a space between the operator and the colon; it should have always been there, for consistency with `func #OP# (...)`. Fixes apple#311.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Additional Detail from JIRA
md5: 5d0082075fcdcdda5e068a5ebb0862e8
Issue Description:
Trying to format something like:
Causes swift-format to fail with:
The text was updated successfully, but these errors were encountered: