Skip to content

Commit 7ba2a5e

Browse files
committed
Fix defaultValue parsing
Currently vscode highlighting breaks for the entire file when a graphql defaultValue is used. This is because we don't accept a close paren as a possible terminator for the `graphql-variable-assignment` token. Replace the literal '.' with a closing paren.
1 parent e3c685a commit 7ba2a5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/vscode-apollo/syntaxes/graphql.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@
267267
},
268268
"graphql-variable-assignment": {
269269
"begin": "\\s(=)",
270-
"end": "(?=[\n.])",
270+
"end": "(?=[\n)])",
271271
"applyEndPatternLast": 1,
272272
"beginCaptures": {
273273
"1": { "name": "punctuation.assignment.graphql" }

0 commit comments

Comments
 (0)