Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple argument syntax highlighting #3534

Merged

Conversation

johndcollett
Copy link
Contributor

@johndcollett johndcollett commented Feb 14, 2024

Issue

arguments separated by commas we not being parsed by the grammar leading to incorrect syntax highlighting in cm6-graphql package.

Solution

Add an optional comma to Arguments in the grammar. This allows comma separated arguments as seen in the spec: https://spec.graphql.org/October2021/#sec-Language.Arguments.Arguments-are-unordered

Copy link

linux-foundation-easycla bot commented Feb 14, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: johndcollett / name: John Collett (83c151a)

Copy link

changeset-bot bot commented Feb 14, 2024

🦋 Changeset detected

Latest commit: 83c151a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
cm6-graphql Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@acao acao requested a review from imolorhe February 18, 2024 13:45
@acao acao added the cm-6 label Feb 18, 2024
@acao
Copy link
Member

acao commented Mar 1, 2024

excellent work, and with a spec citation! thank you 💯

Copy link
Member

@acao acao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will leave this to @imolorhe as he is our expert on this particular grammar, but it looks great from my side, thank you!

Copy link
Contributor

@imolorhe imolorhe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh nice. Thanks!

@imolorhe imolorhe merged commit f4c98c1 into graphql:main Mar 1, 2024
14 checks passed
@acao acao mentioned this pull request Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants