summaryrefslogtreecommitdiff
path: root/src/syntax/mod.rs
diff options
context:
space:
mode:
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,
}