tinymist/syntaxes/textmate/tests/unit/expr/in_block.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

75 lines
No EOL
3.7 KiB
Text

>#{
#^ source.typst keyword.control.hash.typst
# ^ source.typst meta.brace.curly.typst
> false and true;
#^^ source.typst
# ^^^^^ source.typst constant.language.boolean.typst
# ^^^^^^^^^^^^^^^^^^^ source.typst
# ^^^ source.typst keyword.other.logical.typst
# ^^^^^^^^^^^ source.typst
# ^^^^ source.typst constant.language.boolean.typst
# ^ source.typst punctuation.terminator.statement.typst
>
> if 1 + 2 == 3 {
#^^ source.typst
# ^^ source.typst meta.expr.if.typst keyword.control.conditional.typst
# ^ source.typst meta.expr.if.typst
# ^ source.typst meta.expr.if.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.if.typst
# ^ source.typst meta.expr.if.typst keyword.operator.arithmetic.typst
# ^ source.typst meta.expr.if.typst
# ^ source.typst meta.expr.if.typst constant.numeric.integer.typst
# ^^^^^^^^^^^^^^^^^^^ source.typst meta.expr.if.typst
# ^^ source.typst meta.expr.if.typst keyword.operator.relational.typst
# ^ source.typst meta.expr.if.typst
# ^ source.typst meta.expr.if.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.if.typst
# ^ source.typst meta.expr.if.typst meta.brace.curly.typst
>
> }
#^^ source.typst meta.expr.if.typst
# ^ source.typst meta.expr.if.typst meta.brace.curly.typst
>}
#^ source.typst meta.brace.curly.typst
>
>#{
#^ source.typst keyword.control.hash.typst
# ^ source.typst meta.brace.curly.typst
> while false == 3 {}
#^^ source.typst
# ^^^^^ source.typst meta.expr.while.typst keyword.control.loop.typst
# ^ source.typst meta.expr.while.typst
# ^^^^^ source.typst meta.expr.while.typst constant.language.boolean.typst
# ^^ source.typst meta.expr.while.typst
# ^^ source.typst meta.expr.while.typst keyword.operator.relational.typst
# ^ source.typst meta.expr.while.typst
# ^ source.typst meta.expr.while.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.while.typst
# ^ source.typst meta.expr.while.typst meta.brace.curly.typst
# ^ source.typst meta.expr.while.typst meta.brace.curly.typst
>
>}
#^ source.typst meta.brace.curly.typst
>
>#{
#^ source.typst keyword.control.hash.typst
# ^ source.typst meta.brace.curly.typst
> set text(red) if false
#^^ source.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
# ^^^^^^^^^^^^^^^^^ 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 constant.language.boolean.typst
> and true
#^^ source.typst
# ^^^ source.typst keyword.other.logical.typst
# ^ source.typst
# ^^^^ source.typst constant.language.boolean.typst
>}
#^ source.typst meta.brace.curly.typst