mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-12-23 08:47:50 +00:00
* fix: comment and set rules * fix: losen for rules * fix: chore field, escape * fix: hash termination * dev: handle math mode * fix: terminate expressions on right braces * dev: match spread operator * dev: remove complex check on if * dev: add two bugs * dev: fix if/while conditions * fix: terminate expressions on right braces 2
44 lines
389 B
Typst
44 lines
389 B
Typst
#let f(..args) = f
|
|
#let g = (f: f)
|
|
#g.insert("g", g)
|
|
|
|
#f()
|
|
#f() []
|
|
#f() ()
|
|
#f ()
|
|
#f []
|
|
#f[] []
|
|
|
|
#(f())()
|
|
#( f())()
|
|
#(f() )()
|
|
|
|
#((f())(f()))
|
|
#f()()
|
|
#f(f)(f, f)
|
|
#(g.g.f)()
|
|
|
|
#list.item[]
|
|
#list[]
|
|
|
|
#{ f }()
|
|
#({ f })()
|
|
#{ f } ()
|
|
#({ f }) ()
|
|
|
|
#(list./*g*/item[])
|
|
#(list./*g*/ item[])
|
|
#(f /*g*/ ())
|
|
|
|
|
|
#{
|
|
("").join()
|
|
}
|
|
|
|
#test([#": "])
|
|
#{}
|
|
|
|
#assert(str(it.fields().label))
|
|
#{}
|
|
|
|
#table(..range(6))
|