tinymist/syntaxes/textmate/tests/unit/basic/call-ident.typ.snap
Myriad-Dreamin 987a7da867
feat: complete arguments enhanced by type inference (#186)
* auto complete code in param position

* dev: initial path completion in params

* fix: compile error

* remove two todo

* dev: improve get_deref_target

* check string during completion

* feat: complete path arguments

* feat: identify hash before function follows a content parameter

* dev: complete text.size, text.dir, stack.dir, stroke dict

* dev: add record type

* dev: complete stroke dict

* fix: correct kind of langauge of code tooltip

* dev: add colon trigger character

* dev: let type selection complete

* dev: complete inset/outset/margin/radius dictionary types

* dev: complete raw theme/syntaxes, bib path types

* dev: complete all files at the same time

* dev: update snapshot
2024-04-15 00:17:54 +08:00

300 lines
No EOL
15 KiB
Text

>#let f(..args) = f
#^ source.typst keyword.control.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 keyword.operator.spread.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 variable.other.readwrite.typst
>#let g = (f: f)
#^ source.typst keyword.control.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^ source.typst meta.expr.let.typst variable.other.readwrite.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 variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst punctuation.separator.colon.typst
# ^ source.typst meta.expr.let.typst
# ^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst meta.brace.round.typst
>#g.insert("g", g)
#^ source.typst variable.other.readwrite.hash.typst
# ^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.call.typst keyword.operator.accessor.typst
# ^^^^^^ source.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.call.typst string.quoted.double.typst
# ^ source.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.call.typst punctuation.separator.comma.typst
# ^ source.typst meta.expr.call.typst
# ^ source.typst meta.expr.call.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
>
>#f()
#^ source.typst entity.name.function.hash.typst
# ^ source.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
>#f() []
#^ source.typst entity.name.function.hash.typst
# ^ source.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
# ^^^^ source.typst
>#f() ()
#^ source.typst entity.name.function.hash.typst
# ^ source.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
# ^^^^ source.typst
>#f ()
#^ source.typst variable.other.readwrite.hash.typst
# ^ source.typst variable.other.readwrite.typst
# ^^^^ source.typst
>#f []
#^ source.typst variable.other.readwrite.hash.typst
# ^ source.typst variable.other.readwrite.typst
# ^^^^ source.typst
>#f[] []
#^ source.typst entity.name.function.hash.typst
# ^ source.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.call.typst meta.brace.square.typst
# ^ source.typst meta.expr.call.typst meta.brace.square.typst
# ^^^^ source.typst
>
>#(f())()
#^ source.typst keyword.control.hash.typst
# ^ source.typst meta.brace.round.typst
# ^ source.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.brace.round.typst
# ^ source.typst meta.brace.round.typst
# ^ source.typst meta.brace.round.typst
>#( f())()
#^ source.typst keyword.control.hash.typst
# ^ source.typst meta.brace.round.typst
# ^ source.typst
# ^ source.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.brace.round.typst
# ^ source.typst meta.brace.round.typst
# ^ source.typst meta.brace.round.typst
>#(f() )()
#^ source.typst keyword.control.hash.typst
# ^ source.typst meta.brace.round.typst
# ^ source.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst
# ^ source.typst meta.brace.round.typst
# ^ source.typst meta.brace.round.typst
# ^ source.typst meta.brace.round.typst
>
>#((f())(f()))
#^ source.typst keyword.control.hash.typst
# ^ source.typst meta.brace.round.typst
# ^ source.typst meta.brace.round.typst
# ^ source.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.brace.round.typst
# ^ source.typst meta.brace.round.typst
# ^ source.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.brace.round.typst
# ^ source.typst meta.brace.round.typst
>#f()()
#^ source.typst entity.name.function.hash.typst
# ^ source.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
>#f(f)(f, f)
#^ source.typst entity.name.function.hash.typst
# ^ source.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.call.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.call.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.call.typst punctuation.separator.comma.typst
# ^ source.typst meta.expr.call.typst
# ^ source.typst meta.expr.call.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
>#(g.g.f)()
#^ source.typst keyword.control.hash.typst
# ^ source.typst meta.brace.round.typst
# ^ source.typst variable.other.readwrite.typst
# ^ source.typst keyword.operator.accessor.typst
# ^ source.typst variable.other.readwrite.typst
# ^ source.typst keyword.operator.accessor.typst
# ^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
# ^ source.typst meta.brace.round.typst
# ^ source.typst meta.brace.round.typst
>
>#list.item[]
#^ source.typst variable.other.readwrite.hash.typst
# ^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.call.typst keyword.operator.accessor.typst
# ^^^^ source.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.call.typst meta.brace.square.typst
# ^ source.typst meta.expr.call.typst meta.brace.square.typst
>#list[]
#^ source.typst entity.name.function.hash.typst
# ^^^^ source.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.call.typst meta.brace.square.typst
# ^ source.typst meta.expr.call.typst meta.brace.square.typst
>
>#{ f }()
#^ source.typst keyword.control.hash.typst
# ^ source.typst meta.brace.curly.typst
# ^ source.typst
# ^ source.typst variable.other.readwrite.typst
# ^ source.typst
# ^ source.typst meta.brace.curly.typst
# ^ source.typst meta.brace.round.typst
# ^ source.typst meta.brace.round.typst
>#({ f })()
#^ source.typst keyword.control.hash.typst
# ^ source.typst meta.brace.round.typst
# ^ source.typst meta.brace.curly.typst
# ^ source.typst
# ^ source.typst variable.other.readwrite.typst
# ^ source.typst
# ^ source.typst meta.brace.curly.typst
# ^ source.typst meta.brace.round.typst
# ^ source.typst meta.brace.round.typst
# ^ source.typst meta.brace.round.typst
>#{ f } ()
#^ source.typst keyword.control.hash.typst
# ^ source.typst meta.brace.curly.typst
# ^ source.typst
# ^ source.typst variable.other.readwrite.typst
# ^ source.typst
# ^ source.typst meta.brace.curly.typst
# ^^^^ source.typst
>#({ f }) ()
#^ source.typst keyword.control.hash.typst
# ^ source.typst meta.brace.round.typst
# ^ source.typst meta.brace.curly.typst
# ^ source.typst
# ^ source.typst variable.other.readwrite.typst
# ^ source.typst
# ^ source.typst meta.brace.curly.typst
# ^ source.typst meta.brace.round.typst
# ^^^^ source.typst
>
>#(list./*g*/item[])
#^ source.typst keyword.control.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst keyword.operator.accessor.typst
# ^^ source.typst comment.block.typst punctuation.definition.comment.typst
# ^ source.typst comment.block.typst
# ^^ source.typst comment.block.typst
# ^^^^ source.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.call.typst meta.brace.square.typst
# ^ source.typst meta.expr.call.typst meta.brace.square.typst
# ^ source.typst meta.brace.round.typst
>#(list./*g*/ item[])
#^ source.typst keyword.control.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst keyword.operator.accessor.typst
# ^^ source.typst comment.block.typst punctuation.definition.comment.typst
# ^ source.typst comment.block.typst
# ^^ source.typst comment.block.typst
# ^ source.typst
# ^^^^ source.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.call.typst meta.brace.square.typst
# ^ source.typst meta.expr.call.typst meta.brace.square.typst
# ^ source.typst meta.brace.round.typst
>#(f /*g*/ ())
#^ source.typst keyword.control.hash.typst
# ^ source.typst meta.brace.round.typst
# ^ source.typst variable.other.readwrite.typst
# ^ source.typst
# ^^ source.typst comment.block.typst punctuation.definition.comment.typst
# ^ source.typst comment.block.typst
# ^^ source.typst comment.block.typst
# ^ source.typst
# ^ source.typst meta.brace.round.typst
# ^ source.typst meta.brace.round.typst
# ^ source.typst meta.brace.round.typst
>
>
>#{
#^ source.typst keyword.control.hash.typst
# ^ source.typst meta.brace.curly.typst
> ("").join()
#^^ source.typst
# ^ source.typst meta.brace.round.typst
# ^ source.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.brace.round.typst
# ^ source.typst meta.expr.call.typst keyword.operator.accessor.typst
# ^^^^ source.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
>}
#^ source.typst meta.brace.curly.typst
>
>#test([#": "])
#^ source.typst entity.name.function.hash.typst
# ^^^^ source.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.call.typst meta.brace.square.typst
# ^ source.typst meta.expr.call.typst string.hash.hash.typst
# ^ source.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^^ source.typst meta.expr.call.typst string.quoted.double.typst
# ^ source.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.call.typst meta.brace.square.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
>#{}
#^ source.typst keyword.control.hash.typst
# ^ source.typst meta.brace.curly.typst
# ^ source.typst meta.brace.curly.typst
>
>#assert(str(it.fields().label))
#^ source.typst entity.name.function.hash.typst
# ^^^^^^ source.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
# ^^^ source.typst meta.expr.call.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.call.typst meta.expr.call.typst meta.brace.round.typst
# ^^ source.typst meta.expr.call.typst meta.expr.call.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.call.typst meta.expr.call.typst meta.expr.call.typst keyword.operator.accessor.typst
# ^^^^^^ source.typst meta.expr.call.typst meta.expr.call.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.call.typst meta.expr.call.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.call.typst meta.expr.call.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.call.typst meta.expr.call.typst meta.expr.call.typst keyword.operator.accessor.typst
# ^^^^^ source.typst meta.expr.call.typst meta.expr.call.typst meta.expr.call.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.call.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
>#{}
#^ source.typst keyword.control.hash.typst
# ^ source.typst meta.brace.curly.typst
# ^ source.typst meta.brace.curly.typst
>
>#table(..range(6))
#^ source.typst entity.name.function.hash.typst
# ^^^^^ source.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
# ^^ source.typst meta.expr.call.typst keyword.operator.spread.typst
# ^^^^^ source.typst meta.expr.call.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.call.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.call.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.call.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
>