tinymist/syntaxes/textmate/tests/unit/basic/include.typ.snap
Myriad-Dreamin 14ef2e78e2
feat: provide more robust syntax highlight for expressions in markup context (#80)
* dev: robust if syntax

* dev: robust for syntax

* dev: if/for with content blocks

* dev: robust while syntax

* dev: lift identifier matchers

* dev: update test case

* dev: robust call syntax

* dev: robust arrow func syntax

* dev: robust set syntax

* dev: robust show syntax

* dev: robust let syntax

* dev: robust string literal syntax

* dev: robust include syntax

* dev: robust import syntax

* dev: expression continuation

* dev: error tolerance

* dev: robust inline/blocky raw syntax

* dev: chore fixes

* dev: fix call and raw

* dev: fix some markup

* dev: refactor many markup patterns

* dev: final touches

* dev: remove unused dep
2024-03-21 17:52:51 +08:00

43 lines
No EOL
3 KiB
Text

>#include
#^ source.typst punctuation.definition.hash.typst
# ^^^^^^^ source.typst meta.expr.include.typst keyword.control.import.typst
>#include "ident.typ"
#^ source.typst meta.expr.include.typst
# ^^^^^^^ source.typst meta.expr.include.typst meta.expr.include.typst keyword.control.import.typst
# ^ source.typst meta.expr.include.typst meta.expr.include.typst
# ^ source.typst meta.expr.include.typst meta.expr.include.typst string.quoted.double.typst punctuation.definition.string.typst
# ^^^^^^^^^ source.typst meta.expr.include.typst meta.expr.include.typst string.quoted.double.typst
# ^ source.typst meta.expr.include.typst meta.expr.include.typst string.quoted.double.typst punctuation.definition.string.typst
>#include;"ident.typ"
#^ source.typst punctuation.definition.hash.typst
# ^^^^^^^ source.typst meta.expr.include.typst keyword.control.import.typst
# ^ source.typst punctuation.terminator.statement.typst
# ^^^^^^^^^^^^ source.typst
>#include"ident.typ";
#^ source.typst punctuation.definition.hash.typst
# ^^^^^^^ source.typst meta.expr.include.typst keyword.control.import.typst
# ^ source.typst meta.expr.include.typst string.quoted.double.typst punctuation.definition.string.typst
# ^^^^^^^^^ source.typst meta.expr.include.typst string.quoted.double.typst
# ^ source.typst meta.expr.include.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst punctuation.terminator.statement.typst
>#include("ident.typ");
#^ source.typst punctuation.definition.hash.typst
# ^^^^^^^ source.typst meta.expr.include.typst keyword.control.import.typst
# ^ source.typst meta.expr.include.typst meta.brace.round.typst
# ^ source.typst meta.expr.include.typst string.quoted.double.typst punctuation.definition.string.typst
# ^^^^^^^^^ source.typst meta.expr.include.typst string.quoted.double.typst
# ^ source.typst meta.expr.include.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.include.typst meta.brace.round.typst
# ^ source.typst punctuation.terminator.statement.typst
>#include { "ident.typ" };
#^ source.typst punctuation.definition.hash.typst
# ^^^^^^^ source.typst meta.expr.include.typst keyword.control.import.typst
# ^ source.typst meta.expr.include.typst
# ^ source.typst meta.expr.include.typst meta.brace.curly.typst
# ^ source.typst meta.expr.include.typst
# ^ source.typst meta.expr.include.typst string.quoted.double.typst punctuation.definition.string.typst
# ^^^^^^^^^ source.typst meta.expr.include.typst string.quoted.double.typst
# ^ source.typst meta.expr.include.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.include.typst
# ^ source.typst meta.expr.include.typst meta.brace.curly.typst
# ^ source.typst punctuation.terminator.statement.typst