summaryrefslogtreecommitdiff
path: root/crates/typst-syntax/src/kind.rs
diff options
context:
space:
mode:
authorMax <me@mkor.je>2024-08-09 07:41:01 +0000
committerGitHub <noreply@github.com>2024-08-09 07:41:01 +0000
commitb07607d35e697be3dd5e56945b16afa8103a491e (patch)
tree2bd7ceac0b6797c1f156b35a8a21fe68905e00f6 /crates/typst-syntax/src/kind.rs
parenta6a8cdaa28abe22c3a40e7a96d15e5e02e8a445e (diff)
Split shorthands into math and markup, add tilde shorthand (#4706)
Diffstat (limited to 'crates/typst-syntax/src/kind.rs')
-rw-r--r--crates/typst-syntax/src/kind.rs3
1 files changed, 3 insertions, 0 deletions
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",