Skip to content

Commit b2604d1

Browse files
committed
feat: Additions to snippets
1 parent 82eafdb commit b2604d1

File tree

3 files changed

+163
-2
lines changed

3 files changed

+163
-2
lines changed

syntaxes/schema-defaultSnippets.tmLanguage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scopeName": "source.json.snippets",
66
"injectionSelector": [
77
"L:source.json.embedded .meta.defaultSnippets. meta.structure.array.json .meta.bodyText. string.quoted.double.json\n-.meta.bodyText. meta.structure.dictionary.json\n-.meta.bodyText. meta.structure.array.json\n-.meta.defaultSnippets. meta.structure.array.json meta.structure.array.json .meta.bodyText.\n-.meta.defaultSnippets. meta.structure.dictionary.json meta.structure.dictionary.json .meta.bodyText.\n-meta.embedded.json.comments.snippets.snippets -comment",
8-
"L:source.json.embedded .meta.defaultSnippets. meta.structure.array.json .meta.body. meta.structure.dictionary.json\n(string.quoted.double.json | support.type.property-name.json)\n-.meta.defaultSnippets. meta.structure.array.json meta.structure.array.json .meta.body.\n-.meta.defaultSnippets. meta.structure.dictionary.json meta.structure.dictionary.json .meta.body.\n-meta.embedded.json.comments.snippets.snippets -comment"
8+
"L:source.json.embedded .meta.defaultSnippets. meta.structure.array.json .meta.body. meta.structure.dictionary.value.json\n(string.quoted.double.json | support.type.property-name.json)\n-meta.embedded.json.comments.snippets.snippets -comment"
99
],
1010
"patterns": [
1111
{

syntaxes/tests/JSON/schema.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,24 @@
151151
}
152152
}
153153
}
154+
},
155+
{
156+
"label": "body$0",
157+
"description": "body$0",
158+
"markdownDescription": "body$0",
159+
"body": "body$0",
160+
"bodyText": "body$0"
161+
},
162+
{
163+
"body": {
164+
"body": "body$0",
165+
"body$0": "body"
166+
},
167+
"TODO: false-positive": {
168+
"body": {
169+
"body": "body$0"
170+
}
171+
}
154172
}
155173
]
156174
}

0 commit comments

Comments
 (0)