From 76a5357a97b38118cdc61f6f284a375812a6615a Mon Sep 17 00:00:00 2001 From: Richard Haddad Date: Thu, 16 Jun 2022 20:04:32 +0200 Subject: [PATCH] feat: add with-parenthese gql calls support --- packages/vscode-graphql/grammars/graphql.js.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vscode-graphql/grammars/graphql.js.json b/packages/vscode-graphql/grammars/graphql.js.json index 74d409abe4d..36ad71a20d4 100644 --- a/packages/vscode-graphql/grammars/graphql.js.json +++ b/packages/vscode-graphql/grammars/graphql.js.json @@ -16,7 +16,7 @@ "patterns": [ { "contentName": "meta.embedded.block.graphql", - "begin": "\\s*+(?:(?:(Relay)\\??\\.)(QL)|(gql|graphql|graphql\\.experimental)|(/\\* GraphQL \\*/))\\s*(`)", + "begin": "\\s*+(?:(?:(Relay)\\??\\.)(QL)|(gql|graphql|graphql\\.experimental)|(/\\* GraphQL \\*/))\\s*\\(?\\s*(`)", "beginCaptures": { "1": { "name": "variable.other.class.js" @@ -44,7 +44,7 @@ }, { "contentName": "meta.embedded.block.graphql", - "begin": "\\s*+(?:(?:(Relay)\\??\\.)(QL)|(gql|graphql|graphql\\.experimental))\\s*(?:<.*>)(`)", + "begin": "\\s*+(?:(?:(Relay)\\??\\.)(QL)|(gql|graphql|graphql\\.experimental))\\s*\\(?\\s*(?:<.*>)(`)", "beginCaptures": { "1": { "name": "variable.other.class.js"