Skip to content

Commit

Permalink
Allow newlines after graphql( before start of query string
Browse files Browse the repository at this point in the history
  • Loading branch information
kitten authored and acao committed Jan 28, 2024
1 parent 8188e3e commit ce75cdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vscode-graphql-syntax/grammars/graphql.js.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"patterns": [
{
"contentName": "meta.embedded.block.graphql",
"begin": "\\s*+(?:(?:(Relay)\\??\\.)(QL)|(gql|graphql|graphql\\.experimental)|(/\\* GraphQL \\*/))\\s*\\(?\\s*(`|'|\")",
"begin": "\\s*+(?:(?:(Relay)\\??\\.)(QL)|(gql|graphql|graphql\\.experimental)|(/\\* GraphQL \\*/))\\s*(\\(\\s*[\\n\\s]*)?(`|'|\")",
"beginCaptures": {
"1": {
"name": "variable.other.class.js"
Expand Down

0 comments on commit ce75cdd

Please sign in to comment.