Skip to content

Commit e9a20ba

Browse files
committed
Add missing "captures" to example
1 parent 34b7242 commit e9a20ba

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ Highlights scope names with their own themed colour in realtime:
4343
"comment": "\"begin\" & \"end\" can create a multi-line region",
4444
"begin": "\"",
4545
"end": "\"",
46+
"beginCaptures": { "0": { "name": "punctuation.definition.string.begin.languageId" } },
47+
"endCaptures": { "0": { "name": "punctuation.definition.string.end.languageId" } },
4648
"name": "string.quoted.double.languageId",
4749
"patterns": [
4850
{

vscode.tmLanguage.schema.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
"name": "${1:languageId}",
119119
"scopeName": "source.${1:languageId}",
120120
"patterns": [
121-
"^{ \"include\": \"#$2\" }",
121+
"^{ \"include\": \"#${2:repo-item}\" }",
122122
"^{ \"include\": \"#string\" }",
123123
"^{ \"include\": \"#boolean\" }"
124124
],
@@ -133,6 +133,8 @@
133133
"comment": "\"begin\" & \"end\" can create a multi-line region",
134134
"begin": "\"",
135135
"end": "\"",
136+
"beginCaptures": "^{ \"0\": { \"name\": \"punctuation.definition.string.begin.${1:languageId}\" } }",
137+
"endCaptures": "^{ \"0\": { \"name\": \"punctuation.definition.string.end.${1:languageId}\" } }",
136138
"name": "string.quoted.double.${1:languageId}",
137139
"patterns": [
138140
{

0 commit comments

Comments
 (0)