Why mirror the structure, but not syntactic details, of JSON (or YML) in the pretty printing?
It's true that we've passed peak colon as a culture, and need to start reimagining life in a post-colonial way, but...
It's true that we've passed peak colon as a culture, and need to start reimagining life in a post-colonial way, but...
We've got a reference lexer and parser in JS at https://github.com/graphql/graphql-js/tree/master/src/langua..., and we have a parser in C++ with C and C++ APIs (that can be used to build a parser for other languages) at https://github.com/graphql/libgraphqlparser.
...but we had some really ugly JSON. It was worth it for us to get the readable syntax to just use GraphQL.
With client tooling like GraphiQL and editor plugins, it should just get better.