tinymist/syntaxes/textmate/tests/unit/basic/string.typ.snap
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

61 lines
No EOL
3.1 KiB
Text

>#"abc" + 1
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst string.quoted.double.typst punctuation.definition.string.typst
# ^^^ source.typst string.quoted.double.typst
# ^ source.typst string.quoted.double.typst punctuation.definition.string.typst
# ^^^^^ source.typst
>#"@myriaddreamin" + 1
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst string.quoted.double.typst punctuation.definition.string.typst
# ^^^^^^^^^^^^^^ source.typst string.quoted.double.typst
# ^ source.typst string.quoted.double.typst punctuation.definition.string.typst
# ^^^^^ source.typst
>#"[a]" + 1
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst string.quoted.double.typst punctuation.definition.string.typst
# ^^^ source.typst string.quoted.double.typst
# ^ source.typst string.quoted.double.typst punctuation.definition.string.typst
# ^^^^^ source.typst
>#"{a}" + 1
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst string.quoted.double.typst punctuation.definition.string.typst
# ^^^ source.typst string.quoted.double.typst
# ^ source.typst string.quoted.double.typst punctuation.definition.string.typst
# ^^^^^ source.typst
>#"\\a" + 1
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst string.quoted.double.typst punctuation.definition.string.typst
# ^^ source.typst string.quoted.double.typst constant.character.escape.string.typst
# ^ source.typst string.quoted.double.typst
# ^ source.typst string.quoted.double.typst punctuation.definition.string.typst
# ^^^^^ source.typst
>#"\\" + 1
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst string.quoted.double.typst punctuation.definition.string.typst
# ^^ source.typst string.quoted.double.typst constant.character.escape.string.typst
# ^ source.typst string.quoted.double.typst punctuation.definition.string.typst
# ^^^^^ source.typst
>#"\\\a" + 1
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst string.quoted.double.typst punctuation.definition.string.typst
# ^^ source.typst string.quoted.double.typst constant.character.escape.string.typst
# ^^ source.typst string.quoted.double.typst
# ^ source.typst string.quoted.double.typst punctuation.definition.string.typst
# ^^^^^ source.typst
>#"\v" + 1
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst string.quoted.double.typst punctuation.definition.string.typst
# ^^ source.typst string.quoted.double.typst
# ^ source.typst string.quoted.double.typst punctuation.definition.string.typst
# ^^^^^ source.typst
>#"\我" + 1
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst string.quoted.double.typst punctuation.definition.string.typst
# ^^ source.typst string.quoted.double.typst
# ^ source.typst string.quoted.double.typst punctuation.definition.string.typst
# ^^^^^ source.typst
>#"//"
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst string.quoted.double.typst punctuation.definition.string.typst
# ^^ source.typst string.quoted.double.typst
# ^ source.typst string.quoted.double.typst punctuation.definition.string.typst