fix: match special identifiers in calls (#1125)

This commit is contained in:
Myriad-Dreamin 2025-01-07 14:20:00 +08:00 committed by GitHub
parent a6a6d88143
commit d4d8345166
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 81 additions and 62 deletions

View file

@ -107,7 +107,7 @@ const primitiveFunctions = {
const primitiveTypes: textmate.PatternMatch = {
match:
/\b(any|str|int|float|bool|length|content|array|dictionary|arguments)\b(?!-)/,
/\b(any|str|int|float|bool|type|length|content|array|dictionary|arguments)\b(?!-)/,
name: "entity.name.type.primitive.typst",
};
@ -492,7 +492,7 @@ const markupEnterCode: textmate.Pattern = {
),
enterExpression(
"entity.name.type.primitive.hash.typst",
/(?=(?:any|str|int|float|bool|length|content|array|dictionary|arguments)\b(?!-))/
/(?=(?:any|str|int|float|bool|type|length|content|array|dictionary|arguments)\b(?!-))/
),
enterExpression("keyword.other.none.hash.typst", /(?=(?:none)\b(?!-))/),
enterExpression(
@ -996,11 +996,7 @@ const letStatement = (): textmate.Grammar => {
beginCaptures: {
"1": {
name: "entity.name.function.typst",
patterns: [
{
include: "#primitiveFunctions",
},
],
patterns: [{ include: "#primitiveFunctions" }],
},
"2": {
name: "meta.brace.round.typst",
@ -1398,12 +1394,18 @@ const funcCallOrPropAccess = (strict: boolean): textmate.Pattern => {
IDENTIFIER.source +
(strict ? /(?=\(|\[)/.source : /\s*(?=\(|\[)/.source)
),
name: "entity.name.function.typst",
patterns: [
{
include: "#primitiveFunctions",
captures: {
"0": {
patterns: [
{ include: "#primitiveFunctions" },
{ include: "#primitiveTypes" },
{
match: /.*/,
name: "entity.name.function.typst",
},
],
},
],
},
},
{
include: "#identifier",
@ -1480,11 +1482,19 @@ const mathFuncCallOrPropAccess = (): textmate.Pattern => {
{
match: mathCallStart,
name: "entity.name.function.typst",
patterns: [
{
include: "#primitiveFunctions",
captures: {
"0": {
name: "entity.name.function.typst",
patterns: [
{ include: "#primitiveFunctions" },
{ include: "#primitiveTypes" },
{
match: /.*/,
name: "entity.name.function.typst",
},
],
},
],
},
},
{
include: "#mathIdentifier",

View file

@ -22,7 +22,7 @@
# ^ source.typst meta.expr.for.typst
# ^^ source.typst meta.expr.for.typst keyword.other.range.typst
# ^ source.typst meta.expr.for.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst

View file

@ -285,7 +285,7 @@
#^ source.typst entity.name.function.hash.typst
# ^^^^^^ source.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
# ^^^ source.typst meta.expr.call.typst meta.expr.call.typst entity.name.function.typst
# ^^^ source.typst meta.expr.call.typst meta.expr.call.typst entity.name.type.primitive.typst
# ^ source.typst meta.expr.call.typst meta.expr.call.typst meta.brace.round.typst
# ^^ source.typst meta.expr.call.typst meta.expr.call.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.call.typst meta.expr.call.typst meta.expr.call.typst keyword.operator.accessor.typst
@ -306,7 +306,7 @@
# ^^^^^ source.typst meta.expr.call.typst entity.name.function.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
# ^^ source.typst meta.expr.call.typst keyword.operator.spread.typst
# ^^^^^ source.typst meta.expr.call.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^ source.typst meta.expr.call.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.call.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.call.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.call.typst meta.expr.call.typst meta.brace.round.typst

View file

@ -18,7 +18,7 @@
# ^ source.typst meta.expr.for.typst
# ^^ source.typst meta.expr.for.typst keyword.other.range.typst
# ^ source.typst meta.expr.for.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
@ -30,7 +30,7 @@
# ^ source.typst meta.expr.for.typst
# ^^ source.typst meta.expr.for.typst keyword.other.range.typst
# ^ source.typst meta.expr.for.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
@ -67,7 +67,7 @@
# ^ source.typst meta.expr.for.typst
# ^^ source.typst meta.expr.for.typst keyword.other.range.typst
# ^ source.typst meta.expr.for.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
@ -84,7 +84,7 @@
# ^ source.typst meta.expr.for.typst
# ^^ source.typst meta.expr.for.typst keyword.other.range.typst
# ^ source.typst meta.expr.for.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
@ -100,7 +100,7 @@
# ^ source.typst meta.expr.for.typst
# ^^ source.typst meta.expr.for.typst keyword.other.range.typst
# ^ source.typst meta.expr.for.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
@ -116,7 +116,7 @@
# ^ source.typst meta.expr.for.typst
# ^^ source.typst meta.expr.for.typst keyword.other.range.typst
# ^ source.typst meta.expr.for.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
@ -132,7 +132,7 @@
# ^ source.typst meta.expr.for.typst
# ^^ source.typst meta.expr.for.typst keyword.other.range.typst
# ^ source.typst meta.expr.for.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
@ -148,7 +148,7 @@
# ^ source.typst meta.expr.for.typst
# ^^ source.typst meta.expr.for.typst keyword.other.range.typst
# ^ source.typst meta.expr.for.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
@ -163,7 +163,7 @@
# ^ source.typst meta.expr.for.typst
# ^^ source.typst meta.expr.for.typst keyword.other.range.typst
# ^ source.typst meta.expr.for.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
@ -182,7 +182,7 @@
# ^ source.typst meta.expr.for.typst
# ^^ source.typst meta.expr.for.typst keyword.other.range.typst
# ^ source.typst meta.expr.for.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst

View file

@ -18,7 +18,7 @@
# ^ source.typst meta.expr.for.typst
# ^^ source.typst meta.expr.for.typst keyword.other.range.typst
# ^ source.typst meta.expr.for.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
@ -30,7 +30,7 @@
# ^ source.typst meta.expr.for.typst
# ^^ source.typst meta.expr.for.typst keyword.other.range.typst
# ^ source.typst meta.expr.for.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
@ -67,7 +67,7 @@
# ^ source.typst meta.expr.for.typst
# ^^ source.typst meta.expr.for.typst keyword.other.range.typst
# ^ source.typst meta.expr.for.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
@ -84,7 +84,7 @@
# ^ source.typst meta.expr.for.typst
# ^^ source.typst meta.expr.for.typst keyword.other.range.typst
# ^ source.typst meta.expr.for.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
@ -100,7 +100,7 @@
# ^ source.typst meta.expr.for.typst
# ^^ source.typst meta.expr.for.typst keyword.other.range.typst
# ^ source.typst meta.expr.for.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
@ -116,7 +116,7 @@
# ^ source.typst meta.expr.for.typst
# ^^ source.typst meta.expr.for.typst keyword.other.range.typst
# ^ source.typst meta.expr.for.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
@ -132,7 +132,7 @@
# ^ source.typst meta.expr.for.typst
# ^^ source.typst meta.expr.for.typst keyword.other.range.typst
# ^ source.typst meta.expr.for.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
@ -148,7 +148,7 @@
# ^ source.typst meta.expr.for.typst
# ^^ source.typst meta.expr.for.typst keyword.other.range.typst
# ^ source.typst meta.expr.for.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
@ -163,7 +163,7 @@
# ^ source.typst meta.expr.for.typst
# ^^ source.typst meta.expr.for.typst keyword.other.range.typst
# ^ source.typst meta.expr.for.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
@ -182,7 +182,7 @@
# ^ source.typst meta.expr.for.typst
# ^^ source.typst meta.expr.for.typst keyword.other.range.typst
# ^ source.typst meta.expr.for.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst

View file

@ -330,7 +330,7 @@
# ^ source.typst meta.expr.if.typst
# ^^ source.typst meta.expr.if.typst keyword.operator.relational.typst
# ^ source.typst meta.expr.if.typst
# ^^^^ source.typst meta.expr.if.typst meta.expr.call.typst entity.name.function.typst
# ^^^^ source.typst meta.expr.if.typst meta.expr.call.typst entity.name.type.primitive.typst
# ^ source.typst meta.expr.if.typst meta.expr.call.typst meta.brace.square.typst
# ^ source.typst meta.expr.if.typst meta.expr.call.typst
# ^ source.typst meta.expr.if.typst meta.expr.call.typst meta.brace.square.typst
@ -352,7 +352,7 @@
# ^ source.typst meta.expr.if.typst
# ^^ source.typst meta.expr.if.typst keyword.operator.relational.typst
# ^ source.typst meta.expr.if.typst
# ^^^^ source.typst meta.expr.if.typst variable.other.readwrite.typst
# ^^^^ source.typst meta.expr.if.typst entity.name.type.primitive.typst
# ^ source.typst meta.expr.if.typst
# ^ source.typst meta.expr.if.typst meta.brace.square.typst
# ^^^^ source.typst meta.expr.if.typst

View file

@ -0,0 +1 @@
#str([])

View file

@ -0,0 +1,8 @@
>#str([])
#^ source.typst entity.name.type.primitive.hash.typst
# ^^^ source.typst meta.expr.call.typst entity.name.type.primitive.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.call.typst meta.brace.square.typst
# ^ source.typst meta.expr.call.typst meta.brace.square.typst
# ^ source.typst meta.expr.call.typst meta.brace.round.typst
>

View file

@ -15,7 +15,7 @@
# ^ source.typst meta.expr.for.typst
# ^^ source.typst meta.expr.for.typst keyword.other.range.typst
# ^ source.typst meta.expr.for.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst punctuation.separator.comma.typst
@ -42,7 +42,7 @@
# ^ source.typst meta.expr.for.typst
# ^ source.typst meta.expr.for.typst meta.brace.curly.typst
# ^ source.typst meta.expr.for.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst punctuation.separator.comma.typst
@ -89,7 +89,7 @@
# ^ source.typst meta.expr.for.typst
# ^^ source.typst meta.expr.for.typst keyword.other.range.typst
# ^ source.typst meta.expr.for.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst punctuation.separator.comma.typst
@ -112,7 +112,7 @@
# ^ source.typst meta.expr.for.typst
# ^ source.typst meta.expr.for.typst meta.brace.curly.typst
# ^ source.typst meta.expr.for.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst punctuation.separator.comma.typst
@ -148,7 +148,7 @@
# ^ source.typst meta.expr.for.typst
# ^^ source.typst meta.expr.for.typst keyword.other.range.typst
# ^ source.typst meta.expr.for.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst punctuation.separator.comma.typst
@ -172,7 +172,7 @@
# ^ source.typst meta.expr.for.typst
# ^ source.typst meta.expr.for.typst meta.brace.curly.typst
# ^ source.typst meta.expr.for.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst punctuation.separator.comma.typst
@ -213,7 +213,7 @@
# ^ source.typst meta.expr.for.typst
# ^^ source.typst meta.expr.for.typst keyword.other.range.typst
# ^ source.typst meta.expr.for.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst punctuation.separator.comma.typst
@ -234,7 +234,7 @@
# ^ source.typst meta.expr.for.typst
# ^ source.typst meta.expr.for.typst meta.brace.curly.typst
# ^ source.typst meta.expr.for.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^ source.typst meta.expr.for.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst constant.numeric.integer.typst
# ^ source.typst meta.expr.for.typst meta.expr.call.typst punctuation.separator.comma.typst

View file

@ -57,7 +57,7 @@
# ^ source.typst meta.expr.let.typst markup.math.typst punctuation.definition.string.begin.math.typst
> lr(})
#^^^^ source.typst meta.expr.let.typst markup.math.typst
# ^^ source.typst meta.expr.let.typst markup.math.typst meta.expr.call.typst entity.name.function.typst
# ^^ source.typst meta.expr.let.typst markup.math.typst meta.expr.call.typst entity.name.function.typst entity.name.function.typst entity.name.function.typst
# ^ source.typst meta.expr.let.typst markup.math.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.let.typst markup.math.typst meta.expr.call.typst markup.content.brace.typst
# ^ source.typst meta.expr.let.typst markup.math.typst meta.expr.call.typst meta.brace.round.typst

View file

@ -6,7 +6,7 @@
# ^^^^ source.typst meta.expr.call.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.call.typst punctuation.separator.colon.typst
# ^ source.typst meta.expr.call.typst
# ^^^ source.typst meta.expr.call.typst meta.expr.call.typst entity.name.function.typst
# ^^^ source.typst meta.expr.call.typst meta.expr.call.typst support.function.builtin.typst
# ^ source.typst meta.expr.call.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst meta.expr.call.typst meta.expr.call.typst string.quoted.double.typst punctuation.definition.string.typst
# ^^^^^^^ source.typst meta.expr.call.typst meta.expr.call.typst string.quoted.double.typst

View file

@ -20,7 +20,7 @@
# ^^^^^^ source.typst markup.math.typst
# ^ source.typst markup.math.typst punctuation.math.operator.typst
# ^ source.typst markup.math.typst constant.other.symbol.typst
# ^^^ source.typst markup.math.typst meta.expr.call.typst entity.name.function.typst
# ^^^ source.typst markup.math.typst meta.expr.call.typst entity.name.function.typst entity.name.function.typst entity.name.function.typst
# ^ source.typst markup.math.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst markup.math.typst meta.expr.call.typst
# ^ source.typst markup.math.typst meta.expr.call.typst meta.brace.round.typst
@ -50,7 +50,7 @@
# ^^^^^^ source.typst markup.math.typst
# ^ source.typst markup.math.typst punctuation.math.operator.typst
# ^ source.typst markup.math.typst constant.other.symbol.typst
# ^^^ source.typst markup.math.typst meta.expr.call.typst entity.name.function.typst
# ^^^ source.typst markup.math.typst meta.expr.call.typst entity.name.function.typst entity.name.function.typst entity.name.function.typst
# ^ source.typst markup.math.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst markup.math.typst meta.expr.call.typst
# ^ source.typst markup.math.typst meta.expr.call.typst meta.brace.round.typst

View file

@ -3,7 +3,7 @@
# ^^^^^^ source.typst markup.math.typst
# ^ source.typst markup.math.typst punctuation.math.operator.typst
# ^ source.typst markup.math.typst constant.other.symbol.typst
# ^^^ source.typst markup.math.typst meta.expr.call.typst entity.name.function.typst
# ^^^ source.typst markup.math.typst meta.expr.call.typst entity.name.function.typst entity.name.function.typst entity.name.function.typst
# ^ source.typst markup.math.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst markup.math.typst meta.expr.call.typst
# ^ source.typst markup.math.typst meta.expr.call.typst meta.brace.round.typst

View file

@ -1,10 +1,10 @@
>$upright(A)upright(m)$ "Test it."
#^ source.typst markup.math.typst punctuation.definition.string.begin.math.typst
# ^^^^^^^ source.typst markup.math.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^^^ source.typst markup.math.typst meta.expr.call.typst entity.name.function.typst entity.name.function.typst entity.name.function.typst
# ^ source.typst markup.math.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst markup.math.typst meta.expr.call.typst
# ^ source.typst markup.math.typst meta.expr.call.typst meta.brace.round.typst
# ^^^^^^^ source.typst markup.math.typst meta.expr.call.typst entity.name.function.typst
# ^^^^^^^ source.typst markup.math.typst meta.expr.call.typst entity.name.function.typst entity.name.function.typst entity.name.function.typst
# ^ source.typst markup.math.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst markup.math.typst meta.expr.call.typst
# ^ source.typst markup.math.typst meta.expr.call.typst meta.brace.round.typst

View file

@ -7,7 +7,7 @@
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst markup.math.typst punctuation.definition.string.begin.math.typst
# ^^^^ source.typst meta.expr.let.typst markup.math.typst meta.expr.call.typst entity.name.function.typst
# ^^^^ source.typst meta.expr.let.typst markup.math.typst meta.expr.call.typst entity.name.function.typst entity.name.function.typst entity.name.function.typst
# ^ source.typst meta.expr.let.typst markup.math.typst meta.expr.call.typst meta.brace.round.typst
# ^^^^^ source.typst meta.expr.let.typst markup.math.typst meta.expr.call.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst markup.math.typst meta.expr.call.typst meta.brace.round.typst
@ -24,7 +24,7 @@
# ^ source.typst meta.expr.let.typst
# ^^ source.typst meta.expr.let.typst keyword.operator.assignment.typst
# ^ source.typst meta.expr.let.typst markup.math.typst punctuation.definition.string.begin.math.typst
# ^^^^ source.typst meta.expr.let.typst markup.math.typst meta.expr.call.typst entity.name.function.typst
# ^^^^ source.typst meta.expr.let.typst markup.math.typst meta.expr.call.typst entity.name.function.typst entity.name.function.typst entity.name.function.typst
# ^ source.typst meta.expr.let.typst markup.math.typst meta.expr.call.typst meta.brace.round.typst
# ^^^^^ source.typst meta.expr.let.typst markup.math.typst meta.expr.call.typst variable.other.readwrite.typst
# ^ source.typst meta.expr.let.typst markup.math.typst meta.expr.call.typst meta.brace.round.typst

View file

@ -1,7 +1,7 @@
>$ abs(E_G()) $
#^ source.typst markup.math.typst punctuation.definition.string.begin.math.typst
# ^ source.typst markup.math.typst
# ^^^ source.typst markup.math.typst meta.expr.call.typst entity.name.function.typst
# ^^^ source.typst markup.math.typst meta.expr.call.typst entity.name.function.typst entity.name.function.typst entity.name.function.typst
# ^ source.typst markup.math.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst markup.math.typst meta.expr.call.typst
# ^ source.typst markup.math.typst meta.expr.call.typst punctuation.math.operator.typst

View file

@ -1,11 +1,11 @@
>$ abs(EE_GG()) $
#^ source.typst markup.math.typst punctuation.definition.string.begin.math.typst
# ^ source.typst markup.math.typst
# ^^^ source.typst markup.math.typst meta.expr.call.typst entity.name.function.typst
# ^^^ source.typst markup.math.typst meta.expr.call.typst entity.name.function.typst entity.name.function.typst entity.name.function.typst
# ^ source.typst markup.math.typst meta.expr.call.typst meta.brace.round.typst
# ^^ source.typst markup.math.typst meta.expr.call.typst variable.other.readwrite.typst
# ^ source.typst markup.math.typst meta.expr.call.typst punctuation.math.operator.typst
# ^^ source.typst markup.math.typst meta.expr.call.typst meta.expr.call.typst entity.name.function.typst
# ^^ source.typst markup.math.typst meta.expr.call.typst meta.expr.call.typst entity.name.function.typst entity.name.function.typst entity.name.function.typst
# ^ source.typst markup.math.typst meta.expr.call.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst markup.math.typst meta.expr.call.typst meta.expr.call.typst meta.brace.round.typst
# ^ source.typst markup.math.typst meta.expr.call.typst meta.brace.round.typst
@ -15,7 +15,7 @@
>$ abs(EE_GG)) $
#^ source.typst markup.math.typst punctuation.definition.string.begin.math.typst
# ^ source.typst markup.math.typst
# ^^^ source.typst markup.math.typst meta.expr.call.typst entity.name.function.typst
# ^^^ source.typst markup.math.typst meta.expr.call.typst entity.name.function.typst entity.name.function.typst entity.name.function.typst
# ^ source.typst markup.math.typst meta.expr.call.typst meta.brace.round.typst
# ^^ source.typst markup.math.typst meta.expr.call.typst variable.other.readwrite.typst
# ^ source.typst markup.math.typst meta.expr.call.typst punctuation.math.operator.typst