mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-08-04 02:08:17 +00:00

* 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
161 lines
No EOL
5.8 KiB
Text
161 lines
No EOL
5.8 KiB
Text
>#if 1
|
|
#^ source.typst punctuation.definition.hash.typst
|
|
# ^^ source.typst keyword.control.conditional.typst
|
|
# ^ source.typst
|
|
# ^ source.typst constant.numeric.integer.typst
|
|
>#if {} 1
|
|
#^ source.typst punctuation.definition.hash.typst
|
|
# ^^ source.typst keyword.control.conditional.typst
|
|
# ^ source.typst
|
|
# ^ source.typst meta.brace.curly.typst
|
|
# ^ source.typst meta.brace.curly.typst
|
|
# ^ source.typst
|
|
# ^ source.typst constant.numeric.integer.typst
|
|
>#if {} else {} 1
|
|
#^ source.typst punctuation.definition.hash.typst
|
|
# ^^ source.typst keyword.control.conditional.typst
|
|
# ^ source.typst
|
|
# ^ source.typst meta.brace.curly.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.curly.typst
|
|
# ^ source.typst
|
|
# ^ source.typst constant.numeric.integer.typst
|
|
>#if 1 {} else {} 1
|
|
#^ source.typst punctuation.definition.hash.typst
|
|
# ^^ source.typst keyword.control.conditional.typst
|
|
# ^ source.typst
|
|
# ^ source.typst constant.numeric.integer.typst
|
|
# ^ source.typst
|
|
# ^ source.typst meta.brace.curly.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.curly.typst
|
|
# ^ source.typst
|
|
# ^ source.typst constant.numeric.integer.typst
|
|
>#if [] {} else {} #1
|
|
#^ source.typst punctuation.definition.hash.typst
|
|
# ^^ source.typst keyword.control.conditional.typst
|
|
# ^ source.typst
|
|
# ^ source.typst meta.brace.square.typ
|
|
# ^ source.typst meta.brace.square.typst
|
|
# ^ source.typst
|
|
# ^ source.typst meta.brace.curly.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.curly.typst
|
|
# ^^ source.typst
|
|
# ^ source.typst constant.numeric.integer.typst
|
|
>#if {} {} else {} {}
|
|
#^ source.typst punctuation.definition.hash.typst
|
|
# ^^ source.typst keyword.control.conditional.typst
|
|
# ^ source.typst
|
|
# ^ source.typst meta.brace.curly.typst
|
|
# ^ source.typst meta.brace.curly.typst
|
|
# ^ source.typst
|
|
# ^ source.typst meta.brace.curly.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.curly.typst
|
|
# ^ source.typst
|
|
# ^ source.typst meta.brace.curly.typst
|
|
# ^ source.typst meta.brace.curly.typst
|
|
>#if () {} else {} # a
|
|
#^ source.typst punctuation.definition.hash.typst
|
|
# ^^ source.typst keyword.control.conditional.typst
|
|
# ^ source.typst
|
|
# ^^ source.typst meta.array.empty.typst
|
|
# ^ source.typst
|
|
# ^ source.typst meta.brace.curly.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.curly.typst
|
|
# ^^^ source.typst
|
|
# ^ source.typst variable.other.readwrite.typst
|
|
>
|
|
>#if () {} else {}
|
|
#^ source.typst punctuation.definition.hash.typst
|
|
# ^^ source.typst keyword.control.conditional.typst
|
|
# ^ source.typst
|
|
# ^^ source.typst meta.array.empty.typst
|
|
# ^ source.typst
|
|
# ^ source.typst meta.brace.curly.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.curly.typst
|
|
>1
|
|
#^^ source.typst
|
|
>
|
|
>#if () {} else {}
|
|
#^ source.typst punctuation.definition.hash.typst
|
|
# ^^ source.typst keyword.control.conditional.typst
|
|
# ^ source.typst
|
|
# ^^ source.typst meta.array.empty.typst
|
|
# ^ source.typst
|
|
# ^ source.typst meta.brace.curly.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.curly.typst
|
|
>{}
|
|
#^^^ source.typst
|
|
>
|
|
>#if () {} else {}
|
|
#^ source.typst punctuation.definition.hash.typst
|
|
# ^^ source.typst keyword.control.conditional.typst
|
|
# ^ source.typst
|
|
# ^^ source.typst meta.array.empty.typst
|
|
# ^ source.typst
|
|
# ^ source.typst meta.brace.curly.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.curly.typst
|
|
>{
|
|
#^^ source.typst
|
|
>#if () {} else {}
|
|
#^ source.typst punctuation.definition.hash.typst
|
|
# ^^ source.typst keyword.control.conditional.typst
|
|
# ^ source.typst
|
|
# ^^ source.typst meta.array.empty.typst
|
|
# ^ source.typst
|
|
# ^ source.typst meta.brace.curly.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.curly.typst
|
|
>
|
|
>
|
|
>1
|
|
#^^ source.typst
|
|
># if () {} else {}
|
|
#^ source.typst punctuation.definition.hash.typst
|
|
# ^ source.typst
|
|
# ^^^^^^^^^^^^^^^^^ source.typst
|
|
>1
|
|
#^^ source.typst
|
|
> |