tinymist/syntaxes/textmate/tests/unit/basic/comment.typ.snap
Myriad-Dreamin 2e7c7732dc
feat: mark correct expression boundary on all testing files from typst/typst (#85)
* fix: comment and set rules

* fix: losen for rules

* fix: chore field, escape

* fix: hash termination

* dev: handle math mode

* fix: terminate expressions on right braces

* dev: match spread operator

* dev: remove complex check on if

* dev: add two bugs

* dev: fix if/while conditions

* fix: terminate expressions on right braces 2
2024-03-23 01:19:43 +08:00

26 lines
No EOL
1.3 KiB
Text

>// Test
#^^ source.typst comment.line.double-slash.typst punctuation.definition.comment.typst
# ^^^^^ source.typst comment.line.double-slash.typst
>// Test: http://www.google.com
#^^ source.typst comment.line.double-slash.typst punctuation.definition.comment.typst
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.typst comment.line.double-slash.typst
>/* Test */
#^^ source.typst comment.block.typst punctuation.definition.comment.typst
# ^^^^^^ source.typst comment.block.typst
# ^^ source.typst comment.block.typst
>/* /* Test */ */
#^^ source.typst comment.block.typst punctuation.definition.comment.typst
# ^ source.typst comment.block.typst
# ^^ source.typst comment.block.typst comment.block.typst punctuation.definition.comment.typst
# ^^^^^^ source.typst comment.block.typst comment.block.typst
# ^^ source.typst comment.block.typst comment.block.typst
# ^ source.typst comment.block.typst
# ^^ source.typst comment.block.typst
>/* // */
#^^ source.typst comment.block.typst punctuation.definition.comment.typst
# ^^^^ source.typst comment.block.typst
# ^^ source.typst comment.block.typst
>// /* */
#^^ source.typst comment.line.double-slash.typst punctuation.definition.comment.typst
# ^^^^^^ source.typst comment.line.double-slash.typst
>