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/eval/value.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/eval/value.rs')
| -rw-r--r-- | src/eval/value.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eval/value.rs b/src/eval/value.rs index a27e9aa9..f15ae0c5 100644 --- a/src/eval/value.rs +++ b/src/eval/value.rs @@ -36,7 +36,7 @@ pub enum Value { Color(Color), /// A string: `"string"`. Str(String), - /// A dictionary value: `(false, 12cm, greeting="hi")`. + /// A dictionary value: `(false, 12cm, greeting: "hi")`. Dict(ValueDict), /// A content value: `{*Hi* there}`. Content(SynTree), @@ -125,7 +125,7 @@ impl Debug for Value { /// /// # Example /// ```typst -/// (false, 12cm, greeting="hi") +/// (false, 12cm, greeting: "hi") /// ``` pub type ValueDict = Dict<SpannedEntry<Value>>; |
