Skip to content

Fix defaultValue parsing#1269

Merged
trevor-scheer merged 2 commits intomasterfrom
trevor/fix-default-value-parsing
May 14, 2019
Merged

Fix defaultValue parsing#1269
trevor-scheer merged 2 commits intomasterfrom
trevor/fix-default-value-parsing

Conversation

@trevor-scheer
Copy link
Copy Markdown
Contributor

@trevor-scheer trevor-scheer commented May 14, 2019

Currently vscode highlighting breaks for the entire file when a
graphql defaultValue is used. This is because we don't accept a
close paren or comma as a possible terminator for the
graphql-variable-assignment token.

Replace the literal '.' with a closing paren and comma.

TODO:

  • Update CHANGELOG.md* with your change (include reference to issue & this PR)
  • Make sure all of the significant new logic is covered by tests
  • Rebase your changes on master so that they can be merged easily
  • Make sure all tests and linter rules pass

*Make sure changelog entries note which project(s) has been affected. See older entries for examples on what this looks like.

@trevor-scheer trevor-scheer requested a review from jbaxleyiii as a code owner May 14, 2019 22:49
Currently vscode highlighting breaks for the entire file when a
graphql defaultValue is used. This is because we don't accept a
close paren or comma as a possible terminator for the
`graphql-variable-assignment` token.

Replace the literal '.' with a closing paren and comma.
@trevor-scheer trevor-scheer force-pushed the trevor/fix-default-value-parsing branch from 7ba2a5e to 003f636 Compare May 14, 2019 22:59
@trevor-scheer trevor-scheer merged commit a054867 into master May 14, 2019
@trevor-scheer trevor-scheer deleted the trevor/fix-default-value-parsing branch May 14, 2019 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant