diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-08-27 20:26:35 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-08-27 20:26:35 +0200 |
| commit | 0cb876ebf9138c1ee3b3c87165952a73569ffb28 (patch) | |
| tree | bb60fe96681152afdb142f364a480b12172bd1be /tools/support/typst.tmLanguage.json | |
| parent | 9362c279de362eac1b7ec76834dd76a0235c5dd2 (diff) | |
Add labels and references to TextMate grammar
Diffstat (limited to 'tools/support/typst.tmLanguage.json')
| -rw-r--r-- | tools/support/typst.tmLanguage.json | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/support/typst.tmLanguage.json b/tools/support/typst.tmLanguage.json index b543b63d..0f8102e6 100644 --- a/tools/support/typst.tmLanguage.json +++ b/tools/support/typst.tmLanguage.json @@ -118,6 +118,16 @@ "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|(;)|(?=])", "beginCaptures": { |
