summaryrefslogtreecommitdiff
path: root/src/syntax/lit.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-12-27 20:45:20 +0100
committerLaurenz <laurmaedje@gmail.com>2020-12-27 20:45:20 +0100
commitba3d43f7b2a18984be27f3d472884a19f3adce4c (patch)
tree1c6ffa31145fb69c19319440969d2037b27b584f /src/syntax/lit.rs
parent750d220bb080be077cd7ede6d18d485b1c3fb0c9 (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/lit.rs')
-rw-r--r--src/syntax/lit.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/syntax/lit.rs b/src/syntax/lit.rs
index e8647965..84d5c6f4 100644
--- a/src/syntax/lit.rs
+++ b/src/syntax/lit.rs
@@ -27,17 +27,17 @@ pub enum Lit {
Color(RgbaColor),
/// A string literal: `"hello!"`.
Str(String),
- /// A dictionary literal: `(false, 12cm, greeting = "hi")`.
+ /// A dictionary literal: `(false, 12cm, greeting: "hi")`.
Dict(LitDict),
/// A content literal: `{*Hello* there!}`.
Content(SynTree),
}
-/// A dictionary literal: `(false, 12cm, greeting = "hi")`.
+/// A dictionary literal: `(false, 12cm, greeting: "hi")`.
#[derive(Debug, Default, Clone, PartialEq)]
pub struct LitDict(pub Vec<LitDictEntry>);
-/// An entry in a dictionary literal: `false` or `greeting = "hi"`.
+/// An entry in a dictionary literal: `false` or `greeting: "hi"`.
#[derive(Debug, Clone, PartialEq)]
pub struct LitDictEntry {
/// The key of the entry if there was one: `greeting`.