mirror of
https://github.com/typst/typst
synced 2025-05-14 17:15:28 +08:00
Add labels and references to TextMate grammar
This commit is contained in:
parent
9362c279de
commit
0cb876ebf9
@ -117,6 +117,16 @@
|
|||||||
"end": "\\$",
|
"end": "\\$",
|
||||||
"captures": { "0": { "name": "punctuation.defintion.string.math.typst" } }
|
"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",
|
"begin": "(#)(pub|let|set|show|wrap)\\b",
|
||||||
"end": "\n|(;)|(?=])",
|
"end": "\n|(;)|(?=])",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user