fix: correct identifier/keyword boundaries (#128)

This commit is contained in:
Myriad-Dreamin 2024-03-30 17:14:58 +08:00 committed by GitHub
parent 21a872bbe8
commit 4e318e023f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 886 additions and 30 deletions

View file

@ -72,22 +72,23 @@ const contentBlock: textmate.Pattern = {
const primitiveColors: textmate.Pattern = {
match:
/\b(red|blue|green|black|white|gray|silver|eastern|navy|aqua|teal|purple|fuchsia|maroon|orange|yellow|olive|lime|ltr|rtl|ttb|btt|start|left|center|right|end|top|horizon|bottom)\b/,
/\b(red|blue|green|black|white|gray|silver|eastern|navy|aqua|teal|purple|fuchsia|maroon|orange|yellow|olive|lime|ltr|rtl|ttb|btt|start|left|center|right|end|top|horizon|bottom)\b(?!-)/,
name: "support.type.builtin.typst",
};
const primitiveFunctions = {
match: /\b(?:luma|oklab|oklch|rgb|cmyk|range)\b/,
match: /\b(?:luma|oklab|oklch|rgb|cmyk|range)\b(?!-)/,
name: "support.function.builtin.typst",
};
const primitiveTypes: textmate.PatternMatch = {
match: /\b(auto|any|none|false|true|str|int|float|bool|length|content)\b/,
match:
/\b(auto|any|none|false|true|str|int|float|bool|length|content)\b(?!-)/,
name: "entity.name.type.primitive.typst",
};
const IDENTIFIER_BARE = /[\p{XID_Start}_][\p{XID_Continue}_-]*/;
const IDENTIFIER = /(?<!\)|\]|\})\b[\p{XID_Start}_][\p{XID_Continue}_-]*\b/;
const IDENTIFIER_BARE = /[\p{XID_Start}_][\p{XID_Continue}_\-]*/;
const IDENTIFIER = /(?<!\)|\]|\})\b[\p{XID_Start}_][\p{XID_Continue}_\-]*/;
// todo: distinguish type and variable
const identifier: textmate.PatternMatch = {
@ -97,12 +98,12 @@ const identifier: textmate.PatternMatch = {
const markupLabel: textmate.PatternMatch = {
name: "entity.other.label.typst",
match: /<[\p{XID_Start}_][\p{XID_Continue}_-]*>/,
match: /<[\p{XID_Start}_][\p{XID_Continue}_\-]*>/,
};
const markupReference: textmate.PatternMatch = {
name: "entity.other.reference.typst",
match: /(@)[\p{XID_Start}_][\p{XID_Continue}_-]*/,
match: /(@)[\p{XID_Start}_][\p{XID_Continue}_\-]*/,
captures: {
"1": {
name: "punctuation.definition.reference.typst",
@ -360,15 +361,15 @@ const constants: textmate.Pattern = {
patterns: [
{
name: "constant.language.none.typst",
match: /(?<!\)|\]|\})\bnone\b/,
match: /(?<!\)|\]|\})\bnone\b(?!-)/,
},
{
name: "constant.language.auto.typst",
match: /(?<!\)|\]|\})\bauto\b/,
match: /(?<!\)|\]|\})\bauto\b(?!-)/,
},
{
name: "constant.language.boolean.typst",
match: /(?<!\)|\]|\})\b(true|false)\b/,
match: /(?<!\)|\]|\})\b(true|false)\b(?!-)/,
},
{
name: "constant.numeric.length.typst",
@ -411,15 +412,15 @@ const expression = (): textmate.Grammar => {
{ include: "#arrayOrDict" },
{ include: "#contentBlock" },
{
match: /\b(break|continue)\b/,
match: /\b(break|continue)\b(?!-)/,
name: "keyword.control.loop.typst",
},
{
match: /\b(and|or|not)\b/,
match: /\b(and|or|not)\b(?!-)/,
name: "keyword.operator.word.typst",
},
{
match: /\b(return)\b/,
match: /\b(return)\b(?!-)/,
name: "keyword.control.flow.typst",
},
{ include: "#markupLabel" },
@ -442,11 +443,11 @@ const expression = (): textmate.Grammar => {
{ include: "#identifier" },
{ include: "#constants" },
{
match: /(as)\b/,
match: /(as)\b(?!-)/,
name: "keyword.control.typst",
},
{
match: /(in)\b/,
match: /(in)\b(?!-)/,
name: "keyword.operator.range.typst",
},
{
@ -665,7 +666,7 @@ const markupItalic = markupAnnotate("_", "italic");
const includeStatement: textmate.Pattern = {
name: "meta.expr.include.typst",
begin: /(\binclude\b)\s*/,
begin: /(\binclude\b(?!-))\s*/,
end: /(?=[\n;\}\]\)])/,
beginCaptures: {
"1": {
@ -686,7 +687,7 @@ const includeStatement: textmate.Pattern = {
const importStatement = (): textmate.Grammar => {
const importStatement: textmate.Pattern = {
name: "meta.expr.import.typst",
begin: /(\bimport\b)\s*/,
begin: /(\bimport\b(?!-))\s*/,
end: /(?=[\n;\}\]\)])/,
beginCaptures: {
"1": {
@ -723,7 +724,8 @@ const importStatement = (): textmate.Grammar => {
/// import expression until as|:
const importPathClause: textmate.Pattern = {
begin: /(\bimport\b)\s*/,
begin: /(\bimport\b(?!-))\s*/,
// todo import as
end: /(?=\:|as)/,
beginCaptures: {
"1": {
@ -742,6 +744,7 @@ const importStatement = (): textmate.Grammar => {
/// as expression
const importAsClause: textmate.Pattern = {
// todo: as...
begin: /(\bas\b)\s*/,
end: /(?=[\s;\}\]\)])/,
beginCaptures: {
@ -771,7 +774,7 @@ const importStatement = (): textmate.Grammar => {
const letStatement = (): textmate.Grammar => {
const letStatement: textmate.Pattern = {
name: "meta.expr.let.typst",
begin: lookAhead(/(let\b)/),
begin: lookAhead(/(let\b(?!-))/),
end: /(?!\()(?=[\s;\}\]\)])/,
patterns: [
/// Matches any comments
@ -791,7 +794,7 @@ const letStatement = (): textmate.Grammar => {
const letBindingClause: textmate.Pattern = {
// name: "meta.let.binding.typst",
begin: /(let\b)\s*/,
begin: /(let\b(?!-))\s*/,
end: /(?=[=;\]}])/,
beginCaptures: {
"1": {
@ -804,7 +807,7 @@ const letStatement = (): textmate.Grammar => {
},
/// Matches a func call after the set clause
{
begin: /(\b[\p{XID_Start}_][\p{XID_Continue}_-]*)(\()/,
begin: /(\b[\p{XID_Start}_][\p{XID_Continue}_\-]*)(\()/,
end: /\)/,
beginCaptures: {
"1": {
@ -886,8 +889,8 @@ const letStatement = (): textmate.Grammar => {
const ifStatement = (): textmate.Grammar => {
const ifStatement: textmate.Pattern = {
name: "meta.expr.if.typst",
begin: lookAhead(/(else\s+)?(if\b)/),
end: /(?<=\}|\])(?!\s*else\b)/,
begin: lookAhead(/(else\s+)?(if\b(?!-))/),
end: /(?<=\}|\])(?!\s*else\b(?!-))/,
patterns: [
/// Matches any comments
{
@ -1002,7 +1005,7 @@ const forStatement = (): textmate.Grammar => {
// for v in expr { ... }
const forStatement: textmate.Pattern = {
name: "meta.expr.for.typst",
begin: lookAhead(/(for\b)\s*/),
begin: lookAhead(/(for\b(?!-))\s*/),
end: /(?<=[\}\]])(?=\s*[\n\S;\}\]\)])(?!\s*[\{\[])/,
patterns: [
/// Matches any comments
@ -1087,7 +1090,7 @@ const whileStatement = (): textmate.Grammar => {
// for v in expr { ... }
const whileStatement: textmate.Pattern = {
name: "meta.expr.while.typst",
begin: lookAhead(/(while\b)/),
begin: lookAhead(/(while\b(?!-))/),
end: /(?<=\}|\])/,
patterns: [
/// Matches any comments
@ -1138,7 +1141,7 @@ const whileStatement = (): textmate.Grammar => {
const contextStatement: textmate.Pattern = {
name: "meta.expr.context.typst",
begin: /(context\b)\s*/,
begin: /(context\b(?!-))\s*/,
end: /(?=[\n;\}\]\)])/,
beginCaptures: {
"1": {
@ -1158,7 +1161,7 @@ const contextStatement: textmate.Pattern = {
const setStatement = (): textmate.Grammar => {
const setStatement: textmate.Pattern = {
name: "meta.expr.set.typst",
begin: lookAhead(new RegExp(/(set\b)\s*/.source + IDENTIFIER.source)),
begin: lookAhead(new RegExp(/(set\b(?!-))\s*/.source + IDENTIFIER.source)),
end: /(?<=\))(?!\s*if\b)|(?=[\s;\{\[\}\]\)])/,
patterns: [
/// Matches any comments
@ -1201,7 +1204,7 @@ const setStatement = (): textmate.Grammar => {
const setIfClause: textmate.Pattern = {
// name: "meta.set.if.clause.cond.typst",
begin: /(if\b)\s*/,
begin: /(if\b(?!-))\s*/,
end: /(?<=\S)(?<!and|or|not|in|!=|==|<=|>=|<|>|\+|-|\*|\/|=|\+=|-=|\*=|\/=)(?!\s*(?:and|or|not|in|!=|==|<=|>=|<|>|\+|-|\*|\/|=|\+=|-=|\*=|\/=|\.))|(?=[\n;\}\]\)])/,
beginCaptures: {
"1": {
@ -1230,7 +1233,7 @@ const setStatement = (): textmate.Grammar => {
const showStatement = (): textmate.Grammar => {
const showStatement: textmate.Pattern = {
name: "meta.expr.show.typst",
begin: lookAhead(/(show\b)/),
begin: lookAhead(/(show\b(?!-))/),
end: /(?=[\s;\{\[\}\]\)])/,
patterns: [
/// Matches any comments
@ -1350,7 +1353,7 @@ const callArgs: textmate.Pattern = {
};
const funcRestParam: textmate.Pattern = {
match: /(\.\.)(\b[\p{XID_Start}_][\p{XID_Continue}_-]*)?/,
match: /(\.\.)(\b[\p{XID_Start}_][\p{XID_Continue}_\-]*)?/,
// debugging
// - name: meta.parameter.binding.typst
captures: {

View file

@ -0,0 +1,107 @@
#let true- = 1;
#let auto- = 1;
#let any- = 1;
#let none- = 1;
#let false- = 1;
#let true- = 1;
#let break- = 1;
#let continue- = 1;
#let and- = 1;
#let or- = 1;
#let not- = 1;
#let return- = 1;
#let as- = 1;
#let in- = 1;
#let include- = 1;
#let import- = 1;
#let let- = 1;
#let else- = 1;
#let if- = 1;
#let for- = 1;
#let while- = 1;
#let context- = 1;
#let set- = 1;
#let show- = 1;
#let x-true- = 1;
#let x-auto- = 1;
#let x-any- = 1;
#let x-none- = 1;
#let x-false- = 1;
#let x-true- = 1;
#let x-break- = 1;
#let x-continue- = 1;
#let x-and- = 1;
#let x-or- = 1;
#let x-not- = 1;
#let x-return- = 1;
#let x-as- = 1;
#let x-in- = 1;
#let x-include- = 1;
#let x-import- = 1;
#let x-let- = 1;
#let x-else- = 1;
#let x-if- = 1;
#let x-for- = 1;
#let x-while- = 1;
#let x-context- = 1;
#let x-set- = 1;
#let x-show- = 1;
#let show-() = 1;
#let show-(show-) = 1;
#(1pt-1pt)
#(1rad-1rad)
#(true-)
#(auto-)
#(any-)
#(none-)
#(false-)
#(true-)
#(break-)
#(continue-)
#(and-)
#(or-)
#(not-)
#(return-)
#(as-)
#(in-)
#(include-)
#(import-)
#(let-)
#(else-)
#(if-)
#(for-)
#(while-)
#(context-)
#(set-)
#(show-)
#(x-true-)
#(x-auto-)
#(x-any-)
#(x-none-)
#(x-false-)
#(x-true-)
#(x-break-)
#(x-continue-)
#(x-and-)
#(x-or-)
#(x-not-)
#(x-return-)
#(x-as-)
#(x-in-)
#(x-include-)
#(x-import-)
#(x-let-)
#(x-else-)
#(x-if-)
#(x-for-)
#(x-while-)
#(x-context-)
#(x-set-)
#(x-show-)
A and B

View file

@ -0,0 +1,717 @@
>
>#let true- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let auto- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let any- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let none- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let false- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let true- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let break- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let continue- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let and- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let or- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let not- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let return- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let as- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let in- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let include- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let import- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let let- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let else- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let if- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let for- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let while- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let context- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let set- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let show- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>
>#let x-true- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let x-auto- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let x-any- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let x-none- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let x-false- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let x-true- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let x-break- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let x-continue- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^^^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let x-and- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let x-or- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let x-not- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let x-return- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let x-as- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let x-in- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let x-include- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let x-import- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let x-let- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let x-else- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let x-if- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let x-for- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let x-while- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let x-context- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let x-set- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let x-show- = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>
>#let show-() = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^ source.typst meta.expr.let.typst entity.name.function.typst
# ^ source.typst meta.expr.let.typst meta.brace.round.typst
# ^ source.typst meta.expr.let.typst meta.brace.round.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>#let show-(show-) = 1;
#^ source.typst punctuation.definition.hash.typst
# ^^^ source.typst meta.expr.let.typst storage.type.typst
# ^ source.typst meta.expr.let.typst
# ^^^^^ source.typst meta.expr.let.typst entity.name.function.typst
# ^ source.typst meta.expr.let.typst meta.brace.round.typst
# ^^^^^ source.typst meta.expr.let.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst meta.brace.round.typst
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst constant.numeric.integer.typst
# ^ source.typst punctuation.terminator.statement.typst
>
>#(1pt-1pt)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^ source.typst constant.numeric.length.typst
# ^ source.typst
# ^^^ source.typst constant.numeric.length.typst
# ^ source.typst meta.brace.round.typst
>#(1rad-1rad)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^ source.typst constant.numeric.angle.typst
# ^ source.typst
# ^^^^ source.typst constant.numeric.angle.typst
# ^ source.typst meta.brace.round.typst
>#(true-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(auto-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(any-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(none-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(false-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(true-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(break-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(continue-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(and-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(or-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(not-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(return-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(as-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(in-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(include-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(import-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(let-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(else-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(if-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(for-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(while-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(context-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(set-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(show-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>
>#(x-true-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(x-auto-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(x-any-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(x-none-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(x-false-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(x-true-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(x-break-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(x-continue-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^^^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(x-and-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(x-or-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(x-not-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(x-return-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(x-as-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(x-in-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(x-include-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(x-import-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(x-let-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(x-else-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(x-if-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(x-for-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(x-while-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(x-context-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(x-set-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>#(x-show-)
#^ source.typst punctuation.definition.hash.typst
# ^ source.typst meta.brace.round.typst
# ^^^^^^^ source.typst variable.other.readwrite.typst
# ^ source.typst meta.brace.round.typst
>
>A and B
#^^^^^^^^ source.typst

View file

@ -0,0 +1,2 @@
#show math.equation: i-figured.show-equation.with(level:0,numbering:"(1)")
A and B

View file

@ -0,0 +1,27 @@
>#show math.equation: i-figured.show-equation.with(level:0,numbering:"(1)")
#^ source.typst punctuation.definition.hash.typst
# ^^^^ source.typst meta.expr.show.typst keyword.control.other.typst
# ^ source.typst meta.expr.show.typst
# ^^^^ source.typst meta.expr.show.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.show.typst keyword.operator.accessor.typst
# ^^^^^^^^ source.typst meta.expr.show.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.show.typst punctuation.separator.colon.typst
# ^ source.typst meta.expr.show.typst
# ^^^^^^^^^ source.typst meta.expr.show.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.show.typst keyword.operator.accessor.typst
# ^^^^^^^^^^^^^ source.typst meta.expr.show.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.show.typst meta.expr.call.typst keyword.operator.accessor.typst
# ^^^^ source.typst meta.expr.show.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.show.typst meta.expr.call.typst meta.brace.round.typst
# ^^^^^ source.typst meta.expr.show.typst meta.expr.call.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.show.typst meta.expr.call.typst punctuation.separator.colon.typst
# ^ source.typst meta.expr.show.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.show.typst meta.expr.call.typst punctuation.separator.comma.typst
# ^^^^^^^^^ source.typst meta.expr.show.typst meta.expr.call.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.show.typst meta.expr.call.typst punctuation.separator.colon.typst
# ^ source.typst meta.expr.show.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^^^ source.typst meta.expr.show.typst meta.expr.call.typst string.quoted.double.typst
# ^ source.typst meta.expr.show.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^ source.typst meta.expr.show.typst meta.expr.call.typst meta.brace.round.typst
>A and B
#^^^^^^^^ source.typst