Skip to content

Commit

Permalink
Update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
kitten committed Feb 4, 2024
1 parent 4edd5c0 commit 50d8e3c
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 11 deletions.
12 changes: 6 additions & 6 deletions packages/vscode-graphql-syntax/grammars/graphql.js.json
Expand Up @@ -8,8 +8,8 @@
"end": "\\)",
"patterns": [
{
"begin": "[`']",
"end": "[`']",
"begin": "(`|')",
"end": "(`|')",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.template.begin.js"
Expand All @@ -30,7 +30,7 @@
},
{
"contentName": "meta.embedded.block.graphql",
"begin": "\\s*+(?:(?:(?:(Relay)\\??\\.)(QL)|(gql|graphql|graphql\\.experimental)\\s*(?:<.*>)?\\s*)|(/\\* GraphQL \\*/))\\s*[`']",
"begin": "\\s*+(?:(?:(?:(Relay)\\??\\.)(QL)|(gql|graphql|graphql\\.experimental)\\s*(?:<.*>)?\\s*)|(/\\* GraphQL \\*/))\\s*(`|')",
"beginCaptures": {
"1": {
"name": "variable.other.class.js"
Expand All @@ -48,7 +48,7 @@
"name": "punctuation.definition.string.template.begin.js"
}
},
"end": "[`']",
"end": "(`|')",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.template.end.js"
Expand All @@ -63,7 +63,7 @@
{
"name": "taggedTemplates",
"contentName": "meta.embedded.block.graphql",
"begin": "[`'](#graphql)",
"begin": "(`|')(#graphql)",
"beginCaptures": {
"1": {
"name": "punctuation.definition.string.template.begin.js"
Expand All @@ -72,7 +72,7 @@
"name": "comment.line.graphql.js"
}
},
"end": "[`']",
"end": "(`|')",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.template.end.js"
Expand Down
6 changes: 3 additions & 3 deletions packages/vscode-graphql-syntax/tests/__fixtures__/test.js
Expand Up @@ -39,15 +39,15 @@ const graphql = graphql(`

const graphql = graphql(
`
query { test }
query($id: ID!) { test }
`,
[var1, var2]
);

const query = /* GraphQL */ 'query { id } ';
const query = graphql('query { id } ');
const query = graphql('query($id: ID!) { id } ');
const query = graphql(
'query { id } '
'query($id: ID!) { test }'
);

const queryWithInlineComment = `#graphql
Expand Down
Expand Up @@ -155,6 +155,13 @@ const graphql = graphql |
\` | meta.embedded.block.graphql punctuation.definition.string.template.begin.js
| meta.embedded.block.graphql
query | meta.embedded.block.graphql keyword.operation.graphql
( | meta.embedded.block.graphql meta.brace.round.graphql
$id | meta.embedded.block.graphql meta.variables.graphql variable.parameter.graphql
: | meta.embedded.block.graphql meta.variables.graphql punctuation.colon.graphql
| meta.embedded.block.graphql meta.variables.graphql
ID | meta.embedded.block.graphql meta.variables.graphql support.type.builtin.graphql
! | meta.embedded.block.graphql meta.variables.graphql keyword.operator.nulltype.graphql
) | meta.embedded.block.graphql meta.brace.round.graphql
| meta.embedded.block.graphql meta.selectionset.graphql
{ | meta.embedded.block.graphql meta.selectionset.graphql punctuation.operation.graphql
| meta.embedded.block.graphql meta.selectionset.graphql
Expand Down Expand Up @@ -187,6 +194,13 @@ const query = graphql |
( |
' | meta.embedded.block.graphql punctuation.definition.string.template.begin.js
query | meta.embedded.block.graphql keyword.operation.graphql
( | meta.embedded.block.graphql meta.brace.round.graphql
$id | meta.embedded.block.graphql meta.variables.graphql variable.parameter.graphql
: | meta.embedded.block.graphql meta.variables.graphql punctuation.colon.graphql
| meta.embedded.block.graphql meta.variables.graphql
ID | meta.embedded.block.graphql meta.variables.graphql support.type.builtin.graphql
! | meta.embedded.block.graphql meta.variables.graphql keyword.operator.nulltype.graphql
) | meta.embedded.block.graphql meta.brace.round.graphql
| meta.embedded.block.graphql meta.selectionset.graphql
{ | meta.embedded.block.graphql meta.selectionset.graphql punctuation.operation.graphql
| meta.embedded.block.graphql meta.selectionset.graphql
Expand All @@ -202,13 +216,19 @@ const query = graphql |
| meta.embedded.block.graphql
' | meta.embedded.block.graphql punctuation.definition.string.template.begin.js
query | meta.embedded.block.graphql keyword.operation.graphql
( | meta.embedded.block.graphql meta.brace.round.graphql
$id | meta.embedded.block.graphql meta.variables.graphql variable.parameter.graphql
: | meta.embedded.block.graphql meta.variables.graphql punctuation.colon.graphql
| meta.embedded.block.graphql meta.variables.graphql
ID | meta.embedded.block.graphql meta.variables.graphql support.type.builtin.graphql
! | meta.embedded.block.graphql meta.variables.graphql keyword.operator.nulltype.graphql
) | meta.embedded.block.graphql meta.brace.round.graphql
| meta.embedded.block.graphql meta.selectionset.graphql
{ | meta.embedded.block.graphql meta.selectionset.graphql punctuation.operation.graphql
| meta.embedded.block.graphql meta.selectionset.graphql
id | meta.embedded.block.graphql meta.selectionset.graphql variable.graphql
test | meta.embedded.block.graphql meta.selectionset.graphql variable.graphql
| meta.embedded.block.graphql meta.selectionset.graphql
} | meta.embedded.block.graphql meta.selectionset.graphql punctuation.operation.graphql
| meta.embedded.block.graphql
' | meta.embedded.block.graphql punctuation.definition.string.template.end.js
) |
; |
Expand Down

0 comments on commit 50d8e3c

Please sign in to comment.