mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-12-23 08:47:50 +00:00
* dev: robust if syntax * dev: robust for syntax * dev: if/for with content blocks * dev: robust while syntax * dev: lift identifier matchers * dev: update test case * dev: robust call syntax * dev: robust arrow func syntax * dev: robust set syntax * dev: robust show syntax * dev: robust let syntax * dev: robust string literal syntax * dev: robust include syntax * dev: robust import syntax * dev: expression continuation * dev: error tolerance * dev: robust inline/blocky raw syntax * dev: chore fixes * dev: fix call and raw * dev: fix some markup * dev: refactor many markup patterns * dev: final touches * dev: remove unused dep
43 lines
No EOL
3 KiB
Text
43 lines
No EOL
3 KiB
Text
>#(0)
|
|
#^ source.typst punctuation.definition.hash.typst
|
|
# ^ source.typst meta.brace.round.typst
|
|
# ^ source.typst constant.numeric.integer.typst
|
|
# ^ source.typst meta.brace.round.typst
|
|
>#let f(name) = (
|
|
#^ source.typst punctuation.definition.hash.typst
|
|
# ^^^ source.typst meta.expr.let.typst storage.type.typst
|
|
# ^ source.typst meta.expr.let.typst
|
|
# ^ source.typst meta.expr.let.typst entity.name.function.typst
|
|
# ^ source.typst meta.expr.let.typst meta.brace.round.typst
|
|
# ^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
|
|
# ^ source.typst meta.expr.let.typst meta.brace.round.typst
|
|
# ^ source.typst meta.expr.let.typst
|
|
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
|
|
# ^ source.typst meta.expr.let.typst meta.brace.round.typst
|
|
> (
|
|
#^^ source.typst meta.expr.let.typst
|
|
# ^ source.typst meta.expr.let.typst meta.brace.round.typst
|
|
> pad(align(center + horizon, name)),
|
|
#^^^^ source.typst meta.expr.let.typst
|
|
# ^^^ source.typst meta.expr.let.typst meta.expr.call.typst entity.name.function.typst
|
|
# ^ source.typst meta.expr.let.typst meta.expr.call.typst meta.brace.round.typst
|
|
# ^^^^^ source.typst meta.expr.let.typst meta.expr.call.typst meta.expr.call.typst entity.name.function.typst
|
|
# ^ source.typst meta.expr.let.typst meta.expr.call.typst meta.expr.call.typst meta.brace.round.typst
|
|
# ^^^^^^ source.typst meta.expr.let.typst meta.expr.call.typst meta.expr.call.typst support.type.builtin.typst
|
|
# ^ source.typst meta.expr.let.typst meta.expr.call.typst meta.expr.call.typst
|
|
# ^ source.typst meta.expr.let.typst meta.expr.call.typst meta.expr.call.typst keyword.operator.arithmetic.typst
|
|
# ^ source.typst meta.expr.let.typst meta.expr.call.typst meta.expr.call.typst
|
|
# ^^^^^^^ source.typst meta.expr.let.typst meta.expr.call.typst meta.expr.call.typst support.type.builtin.typst
|
|
# ^ source.typst meta.expr.let.typst meta.expr.call.typst meta.expr.call.typst punctuation.separator.comma.typst
|
|
# ^ source.typst meta.expr.let.typst meta.expr.call.typst meta.expr.call.typst
|
|
# ^^^^ source.typst meta.expr.let.typst meta.expr.call.typst meta.expr.call.typst variable.other.readwrite.typst
|
|
# ^ source.typst meta.expr.let.typst meta.expr.call.typst meta.expr.call.typst meta.brace.round.typst
|
|
# ^ source.typst meta.expr.let.typst meta.expr.call.typst meta.brace.round.typst
|
|
# ^ source.typst meta.expr.let.typst punctuation.separator.comma.typst
|
|
# ^^ source.typst meta.expr.let.typst
|
|
> ),
|
|
#^^ source.typst meta.expr.let.typst
|
|
# ^ source.typst meta.expr.let.typst meta.brace.round.typst
|
|
# ^ source.typst meta.expr.let.typst punctuation.separator.comma.typst
|
|
>)
|
|
#^ source.typst meta.expr.let.typst meta.brace.round.typst |