tinymist/syntaxes/textmate/tests/unit/basic/set.typ.snap
Myriad-Dreamin 90ef2e6f72
dev: improve punctuation and keyword token kinds (#133)
* dev: improve punctuation and keyword token kinds

* dev: improve punctuation and keyword token kinds
2024-03-30 20:04:34 +08:00

253 lines
No EOL
18 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 support.type.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 support.type.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 support.type.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 support.type.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 support.type.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
>#set ((text(fill: red)));
#^ source.typst keyword.control.hash.typst
# ^^^ source.typst variable.other.readwrite.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
>#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
>#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
>#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
>#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