ok/jj
1
0
Fork 0
forked from mirrors/jj

templater: sort catch-all arms of ExpressionKind in declaration order

Perhaps this was copy-paste error.
This commit is contained in:
Yuya Nishihara 2024-02-06 12:32:19 +09:00
parent 12c3be70f4
commit 3c4d90483d

View file

@ -719,10 +719,10 @@ pub fn expect_lambda_with<'a, 'i, T>(
) -> TemplateParseResult<T> {
match &node.kind {
ExpressionKind::Lambda(lambda) => f(lambda, node.span),
ExpressionKind::String(_)
| ExpressionKind::Identifier(_)
ExpressionKind::Identifier(_)
| ExpressionKind::Boolean(_)
| ExpressionKind::Integer(_)
| ExpressionKind::String(_)
| ExpressionKind::Concat(_)
| ExpressionKind::FunctionCall(_)
| ExpressionKind::MethodCall(_) => Err(TemplateParseError::unexpected_expression(