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