rmosolgo / language-graphql

GraphQL support for Atom text editor
MIT License
57 stars 13 forks source link

Is there a way to make this work for queries within jsx file? #2

Closed oguzbilgic closed 7 years ago

rmosolgo commented 8 years ago

It must be possible, I've seen context-mixin for HTML + Ruby with .erb files! But I don't know how to do it.

Would be nice to combine with schema autocomplete:

https://twitter.com/devknoll/status/666476905739108352

@devknoll, is that project public?

devknoll commented 8 years ago

@rmosolgo Nope, not yet

kachkaev commented 8 years ago

@devknoll any plans on making it available at some point? Just did a quick search – looks like there're still no GraphQL highlighters for Atom. Looking forward to try GraphQL in Apollo+React stack.

rmosolgo commented 8 years ago

GraphQL is highlighted in Relay.QL since https://github.com/atom/language-javascript/pull/362

tonyxiao commented 8 years ago

Could we get support for gql tag as well? https://github.com/apollostack/graphql-tools/issues/123

rmosolgo commented 8 years ago

Perhaps the Relay.QL PR can be an example for how it's done!

tonyxiao commented 8 years ago

@rmosolgo thanks for the pointer. https://github.com/atom/language-javascript/pull/429

Are you familiar with language-babel at all? That's what I actually use day to day, I found it has much better support for JSX and the like compare to standard language-javascript

rmosolgo commented 7 years ago

Looks like this is supported in language-babel as well:

image

image