tinymist/syntaxes/textmate/tests/unit/basic/control-flow-while.typ.snap
Myriad-Dreamin 2e39afde78
fix: better grammar on incomplete AST (#140)
* dev: error tolerance on editing let/show statements

* dev: error tolerance on editing if/show statements

* dev: error tolerance on editing while/for statements

* dev: error tolerance on editing if/while/for statements

* dev: better token for and or not
2024-04-01 01:51:42 +08:00

130 lines
No EOL
6.3 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
>#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
>#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
>
>#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
>