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 c029204
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 32 deletions.
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 @@ -8,7 +8,7 @@ exports[`inline.graphql grammar > should tokenize a simple ecmascript file 1`] =
const variable = 'test'; |
|
gql | entity.name.function.tagged-template.js
\` | punctuation.definition.string.template.begin.js
\` |
| meta.embedded.block.graphql
query | meta.embedded.block.graphql keyword.operation.graphql
| meta.embedded.block.graphql meta.selectionset.graphql
Expand Down Expand Up @@ -40,7 +40,7 @@ something | meta.embedded.block.graphql meta.select
; |
|
graphql | entity.name.function.tagged-template.js
\` | punctuation.definition.string.template.begin.js
\` |
| meta.embedded.block.graphql
query | meta.embedded.block.graphql keyword.operation.graphql
| meta.embedded.block.graphql meta.selectionset.graphql
Expand Down Expand Up @@ -74,7 +74,7 @@ something | meta.embedded.block.graphql meta.select
const graphql = |
|
graphql | entity.name.function.tagged-template.js
\` | punctuation.definition.string.template.begin.js
\` |
| meta.embedded.block.graphql
query | meta.embedded.block.graphql keyword.operation.graphql
| meta.embedded.block.graphql meta.selectionset.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 All @@ -171,8 +178,7 @@ test | meta.embedded.block.graphql meta.select
const query = |
|
/* GraphQL */ | comment.graphql.js
|
' | punctuation.definition.string.template.begin.js
' |
query | meta.embedded.block.graphql keyword.operation.graphql
| meta.embedded.block.graphql meta.selectionset.graphql
{ | meta.embedded.block.graphql meta.selectionset.graphql punctuation.operation.graphql
Expand All @@ -187,6 +193,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,20 +215,26 @@ 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
) |
; |
|
const queryWithInlineComment = |
\` | taggedTemplates punctuation.definition.string.template.begin.js
#graphql | taggedTemplates comment.line.graphql.js
\` | taggedTemplates
#graphql | taggedTemplates punctuation.definition.string.template.begin.js
| taggedTemplates meta.embedded.block.graphql
query | taggedTemplates meta.embedded.block.graphql keyword.operation.graphql
| taggedTemplates meta.embedded.block.graphql meta.selectionset.graphql
Expand Down Expand Up @@ -247,8 +266,8 @@ something | taggedTemplates meta.embedded.block.gra
; |
|
const queryWithInlineComment = |
' | taggedTemplates punctuation.definition.string.template.begin.js
#graphql | taggedTemplates comment.line.graphql.js
' | taggedTemplates
#graphql | taggedTemplates punctuation.definition.string.template.begin.js
| taggedTemplates meta.embedded.block.graphql
query | taggedTemplates meta.embedded.block.graphql keyword.operation.graphql
| taggedTemplates meta.embedded.block.graphql meta.selectionset.graphql
Expand All @@ -262,8 +281,8 @@ id | taggedTemplates meta.embedded.block.gra
; |
|
const queryWithInlineComment = |
' | taggedTemplates punctuation.definition.string.template.begin.js
#graphql | taggedTemplates comment.line.graphql.js
' | taggedTemplates
#graphql | taggedTemplates punctuation.definition.string.template.begin.js
| taggedTemplates meta.embedded.block.graphql
query | taggedTemplates meta.embedded.block.graphql keyword.operation.graphql
| taggedTemplates meta.embedded.block.graphql meta.selectionset.graphql
Expand All @@ -277,8 +296,8 @@ id | taggedTemplates meta.embedded.block.gra
; |
|
const queryWithInlineComment = |
\` | taggedTemplates punctuation.definition.string.template.begin.js
#graphql | taggedTemplates comment.line.graphql.js
\` | taggedTemplates
#graphql | taggedTemplates punctuation.definition.string.template.begin.js
| taggedTemplates meta.embedded.block.graphql
query | taggedTemplates meta.embedded.block.graphql keyword.operation.graphql
| taggedTemplates meta.embedded.block.graphql meta.selectionset.graphql
Expand Down Expand Up @@ -320,8 +339,7 @@ const queryWithInlineComment = \` |
const queryWithLeadingComment = |
|
/* GraphQL */ | comment.graphql.js
|
\` | punctuation.definition.string.template.begin.js
\` |
| meta.embedded.block.graphql
query | meta.embedded.block.graphql keyword.operation.graphql
| meta.embedded.block.graphql meta.selectionset.graphql
Expand Down Expand Up @@ -374,7 +392,7 @@ exports[`inline.graphql grammar > should tokenize a simple svelte file 1`] = `
const query = |
|
gql | entity.name.function.tagged-template.js
\` | punctuation.definition.string.template.begin.js
\` |
| meta.embedded.block.graphql
query | meta.embedded.block.graphql keyword.operation.graphql
| meta.embedded.block.graphql meta.selectionset.graphql
Expand All @@ -399,7 +417,7 @@ exports[`inline.graphql grammar > should tokenize a simple typescript file 1`] =
// @ts-nocheck |
|
gql | entity.name.function.tagged-template.js
\` | punctuation.definition.string.template.begin.js
\` |
| meta.embedded.block.graphql
query | meta.embedded.block.graphql keyword.operation.graphql
| meta.embedded.block.graphql meta.selectionset.graphql
Expand Down Expand Up @@ -431,8 +449,7 @@ something | meta.embedded.block.graphql meta.selectionset.
; |
|
graphql | entity.name.function.tagged-template.js
<SomeGeneric> |
\` | punctuation.definition.string.template.begin.js
<SomeGeneric>\` |
| meta.embedded.block.graphql
query | meta.embedded.block.graphql keyword.operation.graphql
| meta.embedded.block.graphql meta.selectionset.graphql
Expand Down Expand Up @@ -466,8 +483,7 @@ something | meta.embedded.block.graphql meta.selectionset.
const query = |
|
graphql | entity.name.function.tagged-template.js
<SomeGeneric> |
\` | punctuation.definition.string.template.begin.js
<SomeGeneric>\` |
| meta.embedded.block.graphql
query | meta.embedded.block.graphql keyword.operation.graphql
| meta.embedded.block.graphql meta.selectionset.graphql
Expand Down Expand Up @@ -577,8 +593,8 @@ id | meta.embedded.block.graphql meta.selectionset.
; |
|
const queryWithInlineComment = |
\` | taggedTemplates punctuation.definition.string.template.begin.js
#graphql | taggedTemplates comment.line.graphql.js
\` | taggedTemplates
#graphql | taggedTemplates punctuation.definition.string.template.begin.js
| taggedTemplates meta.embedded.block.graphql
query | taggedTemplates meta.embedded.block.graphql keyword.operation.graphql
| taggedTemplates meta.embedded.block.graphql meta.selectionset.graphql
Expand Down Expand Up @@ -612,8 +628,7 @@ something | taggedTemplates meta.embedded.block.graphql me
const queryWithLeadingComment = |
|
/* GraphQL */ | comment.graphql.js
|
\` | punctuation.definition.string.template.begin.js
\` |
| meta.embedded.block.graphql
query | meta.embedded.block.graphql keyword.operation.graphql
| meta.embedded.block.graphql meta.selectionset.graphql
Expand Down Expand Up @@ -656,7 +671,7 @@ import { ref } from 'vue'; |
const query = |
|
gql | entity.name.function.tagged-template.js
\` | punctuation.definition.string.template.begin.js
\` |
| meta.embedded.block.graphql
query | meta.embedded.block.graphql keyword.operation.graphql
| meta.embedded.block.graphql meta.selectionset.graphql
Expand All @@ -682,7 +697,7 @@ exports[`inline.graphql grammar > should tokenize a simple vue sfc file 1`] = `
const query = |
|
gql | entity.name.function.tagged-template.js
\` | punctuation.definition.string.template.begin.js
\` |
| meta.embedded.block.graphql
query | meta.embedded.block.graphql keyword.operation.graphql
| meta.embedded.block.graphql meta.selectionset.graphql
Expand Down

0 comments on commit c029204

Please sign in to comment.