From b07607d35e697be3dd5e56945b16afa8103a491e Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 9 Aug 2024 07:41:01 +0000 Subject: Split shorthands into math and markup, add tilde shorthand (#4706) --- crates/typst-syntax/src/kind.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crates/typst-syntax/src/kind.rs') diff --git a/crates/typst-syntax/src/kind.rs b/crates/typst-syntax/src/kind.rs index 7505dbc6..a4456b9f 100644 --- a/crates/typst-syntax/src/kind.rs +++ b/crates/typst-syntax/src/kind.rs @@ -75,6 +75,8 @@ pub enum SyntaxKind { Math, /// An identifier in math: `pi`. MathIdent, + /// A shorthand for a unicode codepoint in math: `a <= b`. + MathShorthand, /// An alignment point in math: `&`. MathAlignPoint, /// Matched delimiters in math: `[x + y]`. @@ -400,6 +402,7 @@ impl SyntaxKind { Self::Equation => "equation", Self::Math => "math", Self::MathIdent => "math identifier", + Self::MathShorthand => "math shorthand", Self::MathAlignPoint => "math alignment point", Self::MathDelimited => "delimited math", Self::MathAttach => "math attachments", -- cgit v1.2.3