summaryrefslogtreecommitdiff
path: root/src/syntax/expr.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-06-30 11:04:53 +0200
committerGitHub <noreply@github.com>2021-06-30 11:04:53 +0200
commit45812b700114a51f0ee21e31f4454cde3729eaf5 (patch)
tree435e5a0ade7dc2cbf9199418c618846bb655e957 /src/syntax/expr.rs
parent1c43d8af12a8d318fb681713d0e66eb754485589 (diff)
parentb2fb42cc7019b0269e892c4e39c52557252fecf9 (diff)
Merge pull request #35 from typst/wide-calls
Wide calls
Diffstat (limited to 'src/syntax/expr.rs')
-rw-r--r--src/syntax/expr.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/syntax/expr.rs b/src/syntax/expr.rs
index 62f02399..aabff1ea 100644
--- a/src/syntax/expr.rs
+++ b/src/syntax/expr.rs
@@ -295,7 +295,7 @@ impl BinOp {
Token::And => Self::And,
Token::Or => Self::Or,
Token::EqEq => Self::Eq,
- Token::BangEq => Self::Neq,
+ Token::ExclEq => Self::Neq,
Token::Lt => Self::Lt,
Token::LtEq => Self::Leq,
Token::Gt => Self::Gt,
@@ -388,6 +388,8 @@ pub struct CallExpr {
pub span: Span,
/// The function to call.
pub callee: Box<Expr>,
+ /// Whether the call is wide, that is, capturing the template behind it.
+ pub wide: bool,
/// The arguments to the function.
pub args: CallArgs,
}