tinymist/syntaxes/textmate/tests/unit/basic/let_fn.typ
Myriad-Dreamin a3948df5da
feat: init syntax library for function hover tip (#77)
* dev: introduce upstream tooltip

* feat: basic function definition

* feat: init syntax library

* abandon

* build: run syntax building

* fix: let expression

* fix: markup in code

* fix: raw code
2024-03-20 12:18:57 +08:00

9 lines
No EOL
193 B
Typst

#let f() = 1;
#let f(a) = 1;
#let f(a, b: none) = 1;
#let f(a, (b, c)) = 1;
#let f(a, (b, c: d)) = 1;
#let f((a, b)) = 1;
#let f((a, (c: (b: e)))) = 1;
#let f((a, ..)) = 1;
#let f((.., a)) = 1;