diff options
Diffstat (limited to 'tests/typ/bugs/3502-colon-space.typ')
| -rw-r--r-- | tests/typ/bugs/3502-colon-space.typ | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/typ/bugs/3502-colon-space.typ b/tests/typ/bugs/3502-colon-space.typ new file mode 100644 index 00000000..35f38a9b --- /dev/null +++ b/tests/typ/bugs/3502-colon-space.typ @@ -0,0 +1,14 @@ +// Test that a space after a named parameter is permissible. +// https://github.com/typst/typst/issues/3502 +// Ref: false + +--- +#let f( param : v ) = param +#test(f( param /* ok */ : 2 ), 2) + +--- +#let ( key : /* hi */ binding ) = ( key: "ok" ) +#test(binding, "ok") + +--- +#test(( key : "value" ).key, "value") |
