diff options
Diffstat (limited to 'src/syntax/decoration.rs')
| -rw-r--r-- | src/syntax/decoration.rs | 32 |
1 files changed, 8 insertions, 24 deletions
diff --git a/src/syntax/decoration.rs b/src/syntax/decoration.rs index 13a9ad36..a9097444 100644 --- a/src/syntax/decoration.rs +++ b/src/syntax/decoration.rs @@ -13,32 +13,16 @@ pub type Decorations = SpanVec<Decoration>; #[cfg_attr(feature = "serialize", derive(Serialize))] #[cfg_attr(feature = "serialize", serde(rename_all = "camelCase"))] pub enum Decoration { - /// A valid function name. - /// ```typst - /// [box] - /// ^^^ - /// ``` - ValidFuncName, - /// An invalid function name. - /// ```typst - /// [blabla] - /// ^^^^^^ - /// ``` - InvalidFuncName, - /// A key of a keyword argument. - /// ```typst - /// [box: width=5cm] - /// ^^^^^ - /// ``` + /// A valid, successfully resolved function name. + ResolvedFunc, + /// An invalid, unresolved function name. + UnresolvedFunc, + /// A key part of a keyword argument. ArgumentKey, - /// A key in an object. - /// ```typst - /// [box: padding={ left: 1cm, right: 2cm}] - /// ^^^^ ^^^^^ - /// ``` + /// A key part of a pair in an object. ObjectKey, - /// An italic word. + /// Text in italics. Italic, - /// A bold word. + /// Text in bold. Bold, } |
