tinymist/syntaxes/textmate/tests/unit/editing/if4.typ.snap
Myriad-Dreamin b1efa88161
feat: improve syntax highlighting (#724)
* dev: simplify if statement handling

* dev: parse blocks in if/for/while more consistently

* feat: improve context expression parsing

* feat: improve context expression parsing

* feat: improve parameter clause parsing
2024-10-22 21:41:20 +08:00

16 lines
No EOL
723 B
Text

>#{if () {} else}
#^ source.typst keyword.control.hash.typst
# ^ source.typst meta.brace.curly.typst
# ^^ source.typst meta.expr.if.typst keyword.control.conditional.typst
# ^ source.typst meta.expr.if.typst
# ^ source.typst meta.expr.if.typst meta.brace.round.typst
# ^ source.typst meta.expr.if.typst meta.brace.round.typst
# ^ source.typst meta.expr.if.typst
# ^ source.typst meta.expr.if.typst meta.brace.curly.typst
# ^ source.typst meta.expr.if.typst meta.brace.curly.typst
# ^ source.typst meta.expr.if.typst
# ^^^^ source.typst meta.expr.if.typst keyword.control.conditional.typst
# ^ source.typst meta.brace.curly.typst
>
>test
#^^^^^ source.typst