Add labels and references to TextMate grammar

This commit is contained in:
Laurenz 2022-08-27 20:26:35 +02:00
parent 9362c279de
commit 0cb876ebf9

View File

@ -117,6 +117,16 @@
"end": "\\$",
"captures": { "0": { "name": "punctuation.defintion.string.math.typst" } }
},
{
"name": "entity.other.reference.typst",
"match": "(@)[[:alpha:]_][[:alnum:]_-]*",
"captures": { "1": { "name": "punctuation.definition.reference.typst" } }
},
{
"name": "entity.other.label.typst",
"match": "<[[:alpha:]_][[:alnum:]_-]*>",
"captures": { "1": { "name": "punctuation.definition.label.typst" } }
},
{
"begin": "(#)(pub|let|set|show|wrap)\\b",
"end": "\n|(;)|(?=])",