diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-06-30 11:04:53 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-30 11:04:53 +0200 |
| commit | 45812b700114a51f0ee21e31f4454cde3729eaf5 (patch) | |
| tree | 435e5a0ade7dc2cbf9199418c618846bb655e957 /src/syntax/expr.rs | |
| parent | 1c43d8af12a8d318fb681713d0e66eb754485589 (diff) | |
| parent | b2fb42cc7019b0269e892c4e39c52557252fecf9 (diff) | |
Merge pull request #35 from typst/wide-calls
Wide calls
Diffstat (limited to 'src/syntax/expr.rs')
| -rw-r--r-- | src/syntax/expr.rs | 4 |
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, } |
