tinymist/syntaxes/textmate/tests/unit/basic/set.typ.snap
Myriad-Dreamin 03ac73bd52
feat: change some names of textmate scopes (#1119)
* feat: change some special kind of string tokens

* feat: change some special kind of constant tokens

* feat: change some special kind of keyword tokens

* test: update snapshot
2025-01-07 14:00:21 +08:00

278 lines
No EOL
19 KiB
Text

>#set text(fill: red);
#^ source.typst keyword.control.hash.typst
# ^^^ source.typst meta.expr.set.typst keyword.control.other.typst
# ^ source.typst meta.expr.set.typst
# ^^^^ source.typst meta.expr.set.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^^^^ source.typst meta.expr.set.typst meta.expr.call.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst punctuation.separator.colon.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst
# ^^^ source.typst meta.expr.set.typst meta.expr.call.typst variable.other.constant.builtin.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst punctuation.terminator.statement.typst
>#set text(fill: red)
#^ source.typst keyword.control.hash.typst
# ^^^ source.typst meta.expr.set.typst keyword.control.other.typst
# ^ source.typst meta.expr.set.typst
# ^^^^ source.typst meta.expr.set.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^^^^ source.typst meta.expr.set.typst meta.expr.call.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst punctuation.separator.colon.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst
# ^^^ source.typst meta.expr.set.typst meta.expr.call.typst variable.other.constant.builtin.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
>#set text("")
#^ source.typst keyword.control.hash.typst
# ^^^ source.typst meta.expr.set.typst keyword.control.other.typst
# ^ source.typst meta.expr.set.typst
# ^^^^ source.typst meta.expr.set.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
>#set text(red)
#^ source.typst keyword.control.hash.typst
# ^^^ source.typst meta.expr.set.typst keyword.control.other.typst
# ^ source.typst meta.expr.set.typst
# ^^^^ source.typst meta.expr.set.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^^^ source.typst meta.expr.set.typst meta.expr.call.typst variable.other.constant.builtin.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
>#set list.item(red);
#^ source.typst keyword.control.hash.typst
# ^^^ source.typst meta.expr.set.typst keyword.control.other.typst
# ^ source.typst meta.expr.set.typst
# ^^^^ source.typst meta.expr.set.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst keyword.operator.accessor.typst
# ^^^^ source.typst meta.expr.set.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^^^ source.typst meta.expr.set.typst meta.expr.call.typst variable.other.constant.builtin.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst punctuation.terminator.statement.typst
>#set list.item(fill: red);
#^ source.typst keyword.control.hash.typst
# ^^^ source.typst meta.expr.set.typst keyword.control.other.typst
# ^ source.typst meta.expr.set.typst
# ^^^^ source.typst meta.expr.set.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst keyword.operator.accessor.typst
# ^^^^ source.typst meta.expr.set.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^^^^ source.typst meta.expr.set.typst meta.expr.call.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst punctuation.separator.colon.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst
# ^^^ source.typst meta.expr.set.typst meta.expr.call.typst variable.other.constant.builtin.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst punctuation.terminator.statement.typst
>#set (text(fill: red));
#^ source.typst keyword.control.hash.typst
# ^^^ source.typst variable.other.readwrite.typst
# ^ source.typst
# ^ source.typst markup.content.brace.typst
# ^^^^ source.typst
# ^ source.typst markup.content.brace.typst
# ^^^^^^^^^ source.typst
# ^ source.typst markup.content.brace.typst
# ^ source.typst markup.content.brace.typst
# ^^ source.typst
>#set ((text(fill: red)));
#^ source.typst keyword.control.hash.typst
# ^^^ source.typst variable.other.readwrite.typst
# ^ source.typst
# ^ source.typst markup.content.brace.typst
# ^ source.typst markup.content.brace.typst
# ^^^^ source.typst
# ^ source.typst markup.content.brace.typst
# ^^^^^^^^^ source.typst
# ^ source.typst markup.content.brace.typst
# ^ source.typst markup.content.brace.typst
# ^ source.typst markup.content.brace.typst
# ^^ source.typst
>#set text("") if {}
#^ source.typst keyword.control.hash.typst
# ^^^ source.typst meta.expr.set.typst keyword.control.other.typst
# ^ source.typst meta.expr.set.typst
# ^^^^ source.typst meta.expr.set.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.set.typst
# ^^ source.typst meta.expr.set.typst keyword.control.conditional.typst
# ^ source.typst meta.expr.set.typst
# ^ source.typst meta.expr.set.typst meta.brace.curly.typst
# ^ source.typst meta.expr.set.typst meta.brace.curly.typst
>#set text("") if []
#^ source.typst keyword.control.hash.typst
# ^^^ source.typst meta.expr.set.typst keyword.control.other.typst
# ^ source.typst meta.expr.set.typst
# ^^^^ source.typst meta.expr.set.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.set.typst
# ^^ source.typst meta.expr.set.typst keyword.control.conditional.typst
# ^ source.typst meta.expr.set.typst
# ^ source.typst meta.expr.set.typst meta.brace.square.typst
# ^ source.typst meta.expr.set.typst meta.brace.square.typst
>#set text("") if ()
#^ source.typst keyword.control.hash.typst
# ^^^ source.typst meta.expr.set.typst keyword.control.other.typst
# ^ source.typst meta.expr.set.typst
# ^^^^ source.typst meta.expr.set.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.set.typst
# ^^ source.typst meta.expr.set.typst keyword.control.conditional.typst
# ^ source.typst meta.expr.set.typst
# ^ source.typst meta.expr.set.typst meta.brace.round.typst
# ^ source.typst meta.expr.set.typst meta.brace.round.typst
>#set text("") if {}{}
#^ source.typst keyword.control.hash.typst
# ^^^ source.typst meta.expr.set.typst keyword.control.other.typst
# ^ source.typst meta.expr.set.typst
# ^^^^ source.typst meta.expr.set.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.set.typst
# ^^ source.typst meta.expr.set.typst keyword.control.conditional.typst
# ^ source.typst meta.expr.set.typst
# ^ source.typst meta.expr.set.typst meta.brace.curly.typst
# ^ source.typst meta.expr.set.typst meta.brace.curly.typst
# ^ source.typst markup.content.brace.typst
# ^ source.typst markup.content.brace.typst
>#set text("") if [][]
#^ source.typst keyword.control.hash.typst
# ^^^ source.typst meta.expr.set.typst keyword.control.other.typst
# ^ source.typst meta.expr.set.typst
# ^^^^ source.typst meta.expr.set.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.set.typst
# ^^ source.typst meta.expr.set.typst keyword.control.conditional.typst
# ^ source.typst meta.expr.set.typst
# ^ source.typst meta.expr.set.typst meta.brace.square.typst
# ^ source.typst meta.expr.set.typst meta.brace.square.typst
# ^ source.typst meta.brace.square.typst
# ^ source.typst meta.brace.square.typst
>#set text("") if ()()
#^ source.typst keyword.control.hash.typst
# ^^^ source.typst meta.expr.set.typst keyword.control.other.typst
# ^ source.typst meta.expr.set.typst
# ^^^^ source.typst meta.expr.set.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.set.typst
# ^^ source.typst meta.expr.set.typst keyword.control.conditional.typst
# ^ source.typst meta.expr.set.typst
# ^ source.typst meta.expr.set.typst meta.brace.round.typst
# ^ source.typst meta.expr.set.typst meta.brace.round.typst
# ^ source.typst meta.brace.round.typst
# ^ source.typst meta.brace.round.typst
>#set text("") if {} {}
#^ source.typst keyword.control.hash.typst
# ^^^ source.typst meta.expr.set.typst keyword.control.other.typst
# ^ source.typst meta.expr.set.typst
# ^^^^ source.typst meta.expr.set.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.set.typst
# ^^ source.typst meta.expr.set.typst keyword.control.conditional.typst
# ^ source.typst meta.expr.set.typst
# ^ source.typst meta.expr.set.typst meta.brace.curly.typst
# ^ source.typst meta.expr.set.typst meta.brace.curly.typst
# ^ source.typst
# ^ source.typst markup.content.brace.typst
# ^ source.typst markup.content.brace.typst
>#set text("") if [] []
#^ source.typst keyword.control.hash.typst
# ^^^ source.typst meta.expr.set.typst keyword.control.other.typst
# ^ source.typst meta.expr.set.typst
# ^^^^ source.typst meta.expr.set.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.set.typst
# ^^ source.typst meta.expr.set.typst keyword.control.conditional.typst
# ^ source.typst meta.expr.set.typst
# ^ source.typst meta.expr.set.typst meta.brace.square.typst
# ^ source.typst meta.expr.set.typst meta.brace.square.typst
# ^ source.typst
# ^ source.typst markup.content.brace.typst
# ^ source.typst markup.content.brace.typst
>#set text("") if () ()
#^ source.typst keyword.control.hash.typst
# ^^^ source.typst meta.expr.set.typst keyword.control.other.typst
# ^ source.typst meta.expr.set.typst
# ^^^^ source.typst meta.expr.set.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.set.typst
# ^^ source.typst meta.expr.set.typst keyword.control.conditional.typst
# ^ source.typst meta.expr.set.typst
# ^ source.typst meta.expr.set.typst meta.brace.round.typst
# ^ source.typst meta.expr.set.typst meta.brace.round.typst
# ^ source.typst
# ^ source.typst markup.content.brace.typst
# ^ source.typst markup.content.brace.typst
>#set text("") if {};
#^ source.typst keyword.control.hash.typst
# ^^^ source.typst meta.expr.set.typst keyword.control.other.typst
# ^ source.typst meta.expr.set.typst
# ^^^^ source.typst meta.expr.set.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.set.typst
# ^^ source.typst meta.expr.set.typst keyword.control.conditional.typst
# ^ source.typst meta.expr.set.typst
# ^ source.typst meta.expr.set.typst meta.brace.curly.typst
# ^ source.typst meta.expr.set.typst meta.brace.curly.typst
# ^ source.typst punctuation.terminator.statement.typst
>#set text("") if [];
#^ source.typst keyword.control.hash.typst
# ^^^ source.typst meta.expr.set.typst keyword.control.other.typst
# ^ source.typst meta.expr.set.typst
# ^^^^ source.typst meta.expr.set.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.set.typst
# ^^ source.typst meta.expr.set.typst keyword.control.conditional.typst
# ^ source.typst meta.expr.set.typst
# ^ source.typst meta.expr.set.typst meta.brace.square.typst
# ^ source.typst meta.expr.set.typst meta.brace.square.typst
# ^ source.typst punctuation.terminator.statement.typst
>#set text("") if (); ()
#^ source.typst keyword.control.hash.typst
# ^^^ source.typst meta.expr.set.typst keyword.control.other.typst
# ^ source.typst meta.expr.set.typst
# ^^^^ source.typst meta.expr.set.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.set.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.set.typst
# ^^ source.typst meta.expr.set.typst keyword.control.conditional.typst
# ^ source.typst meta.expr.set.typst
# ^ source.typst meta.expr.set.typst meta.brace.round.typst
# ^ source.typst meta.expr.set.typst meta.brace.round.typst
# ^ source.typst punctuation.terminator.statement.typst
# ^ source.typst
# ^ source.typst markup.content.brace.typst
# ^ source.typst markup.content.brace.typst