summaryrefslogtreecommitdiff
path: root/src/syntax/mod.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-02-11 21:30:39 +0100
committerLaurenz <laurmaedje@gmail.com>2020-02-11 21:30:39 +0100
commit60099aed50b89daef29543c4700470e566c48798 (patch)
treee465b122f68c777d46a08f1074f52bbd930a19ec /src/syntax/mod.rs
parent5badb4e8ff1f8e055f5c1960d1d9803ee4d832fc (diff)
Parse tuples and objects 🍒
Generalizes the parsing of tuples, objects and function arguments into generic comma-separated collections.
Diffstat (limited to 'src/syntax/mod.rs')
-rw-r--r--src/syntax/mod.rs16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/syntax/mod.rs b/src/syntax/mod.rs
index f640f84e..c3a57ee6 100644
--- a/src/syntax/mod.rs
+++ b/src/syntax/mod.rs
@@ -107,19 +107,23 @@ pub enum Decoration {
/// ^^^^^^
/// ```
InvalidFuncName,
-
- /// The key of a keyword argument:
+ /// A key of a keyword argument:
/// ```typst
/// [box: width=5cm]
/// ^^^^^
/// ```
ArgumentKey,
-
- /// Italic.
+ /// A key in an object.
+ /// ```typst
+ /// [box: padding={ left: 1cm, right: 2cm}]
+ /// ^^^^ ^^^^^
+ /// ```
+ ObjectKey,
+ /// An italic word.
Italic,
- /// Bold.
+ /// A bold word.
Bold,
- /// Monospace.
+ /// A monospace word.
Monospace,
}