tinymist/syntaxes/textmate/tests/unit/basic/context.typ.snap
Myriad-Dreamin 5bf177637a
Some checks are pending
tinymist::ci / Duplicate Actions Detection (push) Waiting to run
tinymist::ci / E2E Tests (win32-x64 on windows-latest) (push) Blocked by required conditions
tinymist::ci / prepare-build (push) Waiting to run
tinymist::ci / build-binary (push) Blocked by required conditions
tinymist::ci / build-vsc-assets (push) Blocked by required conditions
tinymist::ci / build-vscode (push) Blocked by required conditions
tinymist::ci / build-vscode-others (push) Blocked by required conditions
tinymist::ci / publish-vscode (push) Blocked by required conditions
tinymist::ci / Check Clippy, Formatting, Completion, Documentation, and Tests (Linux) (push) Waiting to run
tinymist::ci / Check Minimum Rust version and Tests (Windows) (push) Waiting to run
tinymist::ci / E2E Tests (darwin-arm64 on macos-latest) (push) Blocked by required conditions
tinymist::ci / E2E Tests (linux-x64 on ubuntu-22.04) (push) Blocked by required conditions
tinymist::ci / E2E Tests (linux-x64 on ubuntu-latest) (push) Blocked by required conditions
tinymist::ci / E2E Tests (win32-x64 on windows-2019) (push) Blocked by required conditions
tinymist::gh_pages / build-gh-pages (push) Waiting to run
fix: stop hash expressions before "operators" (#1756)
* fix: distinguish markup math and code math

* fix: stop hash expressions before "operators"

* fix: corner cases
2025-05-13 18:06:19 +08:00

69 lines
No EOL
4.7 KiB
Text

>#context 1{}
#^ source.typst keyword.control.hash.typst
# ^^^^^^^ source.typst meta.expr.context.typst keyword.control.other.typst
# ^ source.typst meta.expr.context.typst
# ^ source.typst meta.expr.context.typst constant.numeric.integer.typst
# ^ source.typst markup.content.brace.typst
# ^ source.typst markup.content.brace.typst
>#context 1;{}
#^ source.typst keyword.control.hash.typst
# ^^^^^^^ source.typst meta.expr.context.typst keyword.control.other.typst
# ^ source.typst meta.expr.context.typst
# ^ source.typst meta.expr.context.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
# ^ source.typst markup.content.brace.typst
# ^ source.typst markup.content.brace.typst
>#context {}{}
#^ source.typst keyword.control.hash.typst
# ^^^^^^^ source.typst meta.expr.context.typst keyword.control.other.typst
# ^ source.typst meta.expr.context.typst
# ^ source.typst meta.expr.context.typst meta.brace.curly.typst
# ^ source.typst meta.expr.context.typst meta.brace.curly.typst
# ^ source.typst markup.content.brace.typst
# ^ source.typst markup.content.brace.typst
>#context [][]
#^ source.typst keyword.control.hash.typst
# ^^^^^^^ source.typst meta.expr.context.typst keyword.control.other.typst
# ^ source.typst meta.expr.context.typst
# ^ source.typst meta.expr.context.typst meta.brace.square.typst
# ^ source.typst meta.expr.context.typst meta.brace.square.typst
# ^ source.typst meta.brace.square.typst
# ^ source.typst meta.brace.square.typst
>#context {
#^ source.typst keyword.control.hash.typst
# ^^^^^^^ source.typst meta.expr.context.typst keyword.control.other.typst
# ^ source.typst meta.expr.context.typst
# ^ source.typst meta.expr.context.typst meta.brace.curly.typst
> here().page()
#^^ source.typst meta.expr.context.typst
# ^^^^ source.typst meta.expr.context.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.context.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.context.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.context.typst meta.expr.call.typst keyword.operator.accessor.typst
# ^^^^ source.typst meta.expr.context.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.context.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.context.typst meta.expr.call.typst meta.brace.round.typst
>}{}
#^ source.typst meta.expr.context.typst meta.brace.curly.typst
# ^ source.typst markup.content.brace.typst
# ^ source.typst markup.content.brace.typst
>#context [Citation @distress on page #here().page()]{}
#^ source.typst keyword.control.hash.typst
# ^^^^^^^ source.typst meta.expr.context.typst keyword.control.other.typst
# ^ source.typst meta.expr.context.typst
# ^ source.typst meta.expr.context.typst meta.brace.square.typst
# ^^^^^^^^^ source.typst meta.expr.context.typst
# ^ source.typst meta.expr.context.typst string.other.reference.typst punctuation.definition.reference.typst
# ^^^^^^^^ source.typst meta.expr.context.typst string.other.reference.typst
# ^^^^^^^^^ source.typst meta.expr.context.typst
# ^ source.typst meta.expr.context.typst entity.name.function.hash.typst
# ^^^^ source.typst meta.expr.context.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.context.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.context.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.context.typst meta.expr.call.typst keyword.operator.accessor.typst
# ^^^^ source.typst meta.expr.context.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.context.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.context.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.context.typst meta.brace.square.typst
# ^ source.typst markup.content.brace.typst
# ^ source.typst markup.content.brace.typst