diff --git a/syntaxes/textmate/main.mts b/syntaxes/textmate/main.mts index f23e350f..e3b80e6c 100644 --- a/syntaxes/textmate/main.mts +++ b/syntaxes/textmate/main.mts @@ -691,7 +691,7 @@ const enterExpression = (kind: string, seek: RegExp): textmate.Pattern => { ), ), // The hash starts a string or an identifier. - /(?#let quote(x) = $\"#x\"$ +#^ source.typst keyword.control.hash.typst +# ^^^ source.typst meta.expr.let.typst storage.type.typst +# ^ source.typst meta.expr.let.typst +# ^^^^^ source.typst meta.expr.let.typst entity.name.function.typst +# ^ source.typst meta.expr.let.typst meta.brace.round.typst +# ^ source.typst meta.expr.let.typst variable.other.readwrite.typst +# ^ source.typst meta.expr.let.typst meta.brace.round.typst +# ^ source.typst meta.expr.let.typst +# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst +# ^ source.typst meta.expr.let.typst markup.math.typst punctuation.definition.string.begin.math.typst +# ^^ source.typst meta.expr.let.typst markup.math.typst constant.character.escape.content.typst +# ^ source.typst meta.expr.let.typst markup.math.typst variable.other.readwrite.hash.typst +# ^ source.typst meta.expr.let.typst markup.math.typst variable.other.readwrite.typst +# ^^ source.typst meta.expr.let.typst markup.math.typst constant.character.escape.content.typst +# ^ source.typst meta.expr.let.typst markup.math.typst punctuation.definition.string.end.math.typst +>Rest of code here... +#^^^^^^^^^^^^^^^^^ source.typst +# ^^^ source.typst punctuation.definition.ellipsis.typst +> \ No newline at end of file