mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 12:11:04 +01:00
Switch clang-format pre-commit to get 13.0.0 (#1066)
Also enable gh action, I'm expecting that to work now.
This commit is contained in:
@@ -804,10 +804,9 @@ auto ParseTree::Parser::ParseBraceExpression() -> llvm::Optional<Node> {
|
||||
}
|
||||
|
||||
// Work out the kind of this element
|
||||
Kind elem_kind =
|
||||
(NextTokenIs(TokenKind::Equal())
|
||||
? Value
|
||||
: NextTokenIs(TokenKind::Colon()) ? Type : Unknown);
|
||||
Kind elem_kind = (NextTokenIs(TokenKind::Equal()) ? Value
|
||||
: NextTokenIs(TokenKind::Colon()) ? Type
|
||||
: Unknown);
|
||||
if (elem_kind == Unknown || (kind != Unknown && elem_kind != kind)) {
|
||||
return diagnose_invalid_syntax();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user