tinymist/syntaxes/textmate/tests/unit/basic/control-flow-while.typ.snap
Myriad-Dreamin e95e4284b1
fix: match brackets in content block recursively (#856)
* feat: only match brackets in content block

* test: update snapshot
2024-11-19 23:28:12 +08:00

136 lines
No EOL
6.6 KiB
Text

>#while
#^ source.typst keyword.control.hash.typst
# ^^^^^ source.typst meta.expr.while.typst keyword.control.loop.typst
>#while i
#^ source.typst keyword.control.hash.typst
# ^^^^^ source.typst meta.expr.while.typst keyword.control.loop.typst
# ^ source.typst meta.expr.while.typst
# ^ source.typst meta.expr.while.typst variable.other.readwrite.typst
>#while i {}
#^ source.typst keyword.control.hash.typst
# ^^^^^ source.typst meta.expr.while.typst keyword.control.loop.typst
# ^ source.typst meta.expr.while.typst
# ^ source.typst meta.expr.while.typst variable.other.readwrite.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
>#while i []
#^ source.typst keyword.control.hash.typst
# ^^^^^ source.typst meta.expr.while.typst keyword.control.loop.typst
# ^ source.typst meta.expr.while.typst
# ^ source.typst meta.expr.while.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.while.typst
# ^ source.typst meta.expr.while.typst meta.brace.square.typst
# ^ source.typst meta.expr.while.typst meta.brace.square.typst
>#while i {}1
#^ source.typst keyword.control.hash.typst
# ^^^^^ source.typst meta.expr.while.typst keyword.control.loop.typst
# ^ source.typst meta.expr.while.typst
# ^ source.typst meta.expr.while.typst variable.other.readwrite.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
>#while i []a
#^ source.typst keyword.control.hash.typst
# ^^^^^ source.typst meta.expr.while.typst keyword.control.loop.typst
# ^ source.typst meta.expr.while.typst
# ^ source.typst meta.expr.while.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.while.typst
# ^ source.typst meta.expr.while.typst meta.brace.square.typst
# ^ source.typst meta.expr.while.typst meta.brace.square.typst
# ^^ source.typst
>#while i {} 1
#^ source.typst keyword.control.hash.typst
# ^^^^^ source.typst meta.expr.while.typst keyword.control.loop.typst
# ^ source.typst meta.expr.while.typst
# ^ source.typst meta.expr.while.typst variable.other.readwrite.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
>#while i [] a
#^ source.typst keyword.control.hash.typst
# ^^^^^ source.typst meta.expr.while.typst keyword.control.loop.typst
# ^ source.typst meta.expr.while.typst
# ^ source.typst meta.expr.while.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.while.typst
# ^ source.typst meta.expr.while.typst meta.brace.square.typst
# ^ source.typst meta.expr.while.typst meta.brace.square.typst
# ^^^ source.typst
>#while i {};1
#^ source.typst keyword.control.hash.typst
# ^^^^^ source.typst meta.expr.while.typst keyword.control.loop.typst
# ^ source.typst meta.expr.while.typst
# ^ source.typst meta.expr.while.typst variable.other.readwrite.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 punctuation.terminator.statement.typst
# ^^ source.typst
>#while i [];a
#^ source.typst keyword.control.hash.typst
# ^^^^^ source.typst meta.expr.while.typst keyword.control.loop.typst
# ^ source.typst meta.expr.while.typst
# ^ source.typst meta.expr.while.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.while.typst
# ^ source.typst meta.expr.while.typst meta.brace.square.typst
# ^ source.typst meta.expr.while.typst meta.brace.square.typst
# ^ source.typst punctuation.terminator.statement.typst
# ^^ source.typst
>#while i {} {}
#^ source.typst keyword.control.hash.typst
# ^^^^^ source.typst meta.expr.while.typst keyword.control.loop.typst
# ^ source.typst meta.expr.while.typst
# ^ source.typst meta.expr.while.typst variable.other.readwrite.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
# ^ source.typst markup.content.brace.typst
# ^ source.typst markup.content.brace.typst
>#while i [] []
#^ source.typst keyword.control.hash.typst
# ^^^^^ source.typst meta.expr.while.typst keyword.control.loop.typst
# ^ source.typst meta.expr.while.typst
# ^ source.typst meta.expr.while.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.while.typst
# ^ source.typst meta.expr.while.typst meta.brace.square.typst
# ^ source.typst meta.expr.while.typst meta.brace.square.typst
# ^ source.typst
# ^ source.typst markup.content.brace.typst
# ^ source.typst markup.content.brace.typst
>#while i [] {}
#^ source.typst keyword.control.hash.typst
# ^^^^^ source.typst meta.expr.while.typst keyword.control.loop.typst
# ^ source.typst meta.expr.while.typst
# ^ source.typst meta.expr.while.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.while.typst
# ^ source.typst meta.expr.while.typst meta.brace.square.typst
# ^ source.typst meta.expr.while.typst meta.brace.square.typst
# ^ source.typst
# ^ source.typst markup.content.brace.typst
# ^ source.typst markup.content.brace.typst
>
>#while i {}
#^ source.typst keyword.control.hash.typst
# ^^^^^ source.typst meta.expr.while.typst keyword.control.loop.typst
# ^ source.typst meta.expr.while.typst
# ^ source.typst meta.expr.while.typst variable.other.readwrite.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
>1
#^^ source.typst
>
>#while i []
#^ source.typst keyword.control.hash.typst
# ^^^^^ source.typst meta.expr.while.typst keyword.control.loop.typst
# ^ source.typst meta.expr.while.typst
# ^ source.typst meta.expr.while.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.while.typst
# ^ source.typst meta.expr.while.typst meta.brace.square.typst
# ^ source.typst meta.expr.while.typst meta.brace.square.typst
>1
#^^ source.typst
>