Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 785 Bytes

README.md

File metadata and controls

20 lines (12 loc) · 785 Bytes

tree-sitter-graphql

Attempt at a graphql grammar for tree-sitter.
Install with

npm install tree-sitter-graphql

I think I have the whole ast defined, but please let me know (or send a PR!) if I have missed something. I have all the rules defined with their names from the graphql spec (https://facebook.github.io/graphql/draft), so you can look at those and write an Atom grammar.

I didn't hide any rule: (http://tree-sitter.github.io/tree-sitter/creating-parsers#hiding-rules)
I feel like it is useful to have rules like Value (for when you don't want to style those individually), and not very distracting either. At least not for graphql, which is quite simple.

Thanks for reading,
Michiel Dral