summaryrefslogtreecommitdiff
path: root/src/syntax/token.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/token.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/token.rs')
-rw-r--r--src/syntax/token.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/syntax/token.rs b/src/syntax/token.rs
index e105ad2f..12f4d10d 100644
--- a/src/syntax/token.rs
+++ b/src/syntax/token.rs
@@ -54,10 +54,8 @@ pub enum Token<'s> {
Colon,
/// A comma: `,`.
Comma,
- /// An equals sign: `=`.
- Equals,
- /// A double forward chevron: `>>`.
- Chain,
+ /// A pipe: `|`.
+ Pipe,
/// A plus: `+`.
Plus,
/// A hyphen: `-`.
@@ -150,8 +148,7 @@ impl<'s> Token<'s> {
Self::Colon => "colon",
Self::Comma => "comma",
- Self::Equals => "equals sign",
- Self::Chain => "function chaining operator",
+ Self::Pipe => "pipe",
Self::Plus => "plus sign",
Self::Hyphen => "minus sign",
Self::Slash => "slash",