language-graphql
language-graphql copied to clipboard
GraphQL support for Atom text editor
Example (from the [graphql-yoga][1] project): [link][3]. Definition of docstring: [link][2]. [1]: https://github.com/prisma/graphql-yoga [2]: https://www.apollographql.com/docs/resources/graphql-glossary/#docstring [3]: https://github.com/prisma/graphql-yoga/blob/master/examples/prisma-js/prisma.graphql#L40-L53
GraphQL comments syntax has changed and is now using a triple double-quotes characters format. This breaks syntax highlighting on GitHub. Example on GitHub: https://gist.github.com/Akryum/74471ad4789e4fcde6e072ea0605c62b
Before this change, description strings are not highlighted after: * the first field in a type, * the first variable in a field.  Descriptions for type fields and field...
as of graphql 0.12.3 you can now add comments as string literals ``` "This is a description." schema { query: Query } ``` if we could highlight this somehow, maybe...
See: Or: Commas are optional in GraphQL. This doesn't seem to be an issue with [`language-babel`](https://atom.io/packages/language-babel).
## Problem Highlighting fails inside the `enum` declaration. Everything wants to be orange. ## Screenshot  ## Testing code ``` type ApprovalRequirements {...
Is there a way to specify for what file types I want this syntax to be active?