diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-12-27 20:45:20 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-12-27 20:45:20 +0100 |
| commit | ba3d43f7b2a18984be27f3d472884a19f3adce4c (patch) | |
| tree | 1c6ffa31145fb69c19319440969d2037b27b584f /src/syntax/expr.rs | |
| parent | 750d220bb080be077cd7ede6d18d485b1c3fb0c9 (diff) | |
Refresh function call and dictionary syntax
- No colon between function name and arguments, just whitespace
- "Named" arguments (previously "keyword" arguments) use colon instead of equals sign
Diffstat (limited to 'src/syntax/expr.rs')
| -rw-r--r-- | src/syntax/expr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syntax/expr.rs b/src/syntax/expr.rs index 09729f52..91f4053c 100644 --- a/src/syntax/expr.rs +++ b/src/syntax/expr.rs @@ -7,7 +7,7 @@ use super::*; pub enum Expr { /// A literal: `true`, `1cm`, `"hi"`, `{_Hey!_}`. Lit(Lit), - /// An invocation of a function: `[foo: ...]`, `foo(...)`. + /// An invocation of a function: `[foo ...]`, `foo(...)`. Call(ExprCall), /// A unary operation: `-x`. Unary(ExprUnary), @@ -15,7 +15,7 @@ pub enum Expr { Binary(ExprBinary), } -/// An invocation of a function: `[foo: ...]`, `foo(...)`. +/// An invocation of a function: `[foo ...]`, `foo(...)`. #[derive(Debug, Clone, PartialEq)] pub struct ExprCall { /// The name of the function. |
