mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-12-23 08:47:50 +00:00
* 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
75 lines
No EOL
3.7 KiB
Text
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 |