Open c10b10 opened 7 years ago
I think it's built into the grammar here:
https://github.com/rmosolgo/language-graphql/blob/master/grammars/graphql.json#L6-L9
Does that help?
@c10b10 You could try this https://discuss.atom.io/t/how-do-i-make-atom-recognize-a-file-with-extension-x-as-language-y/26539 using source.graphql
as the scope.
@gandm can't get this (what is described in the link) to work:
customFileTypes:
"source.graphql": [
".graphcool"
]
The only way I managed was to was to add the extension I want (graphcool) to~/.atom/packages/language-graphql/grammars/graphql.json
to fileTypes
like this:
"fileTypes": [
"graphqls",
"graphql",
"gql",
"graphcool"
],
Sorry... took the dot out and it works:
customFileTypes:
"source.graphql": [
"graphcool"
]
Is there a way to specify for what file types I want this syntax to be active?