-
Notifications
You must be signed in to change notification settings - Fork 23
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
Support parens #99
Support parens #99
Conversation
@pvinis: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/ |
|
||
it("works with parens", () => { | ||
const textDocument = mockTextDocument(` | ||
gql(\` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
heres the main diff
} | ||
|
||
\${ReviewList.fragments.reviews} | ||
\`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and here
gh doesnt allow me to add you as a reviewer, so ill just tag here. @jgzuke |
tested locally with |
bundled up here. if you wanna use this PR's version of the extension:
|
LGTM |
syntaxes/graphql.js.json
Outdated
@@ -14,7 +14,7 @@ | |||
"name": "punctuation.definition.string.template.begin.js" | |||
} | |||
}, | |||
"end": "`", | |||
"end": "`\\(?", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean a closing parenthesis here?
Edit: pushed up this change.
"end": "`\\(?", | |
"end": "`\\)?", |
e764b5d
to
146bc35
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @pvinis!
Turns out not too hard to fix. i added the parens in the regex.
Fixes #98.