vektah / gqlparser

A port of the parser from graphql-js into golang
MIT License
498 stars 123 forks source link

feat(formatter): preserve spaces at the head of comments #265

Closed Warashi closed 1 year ago

Warashi commented 1 year ago

This PR allows the formatter to preserve spaces at the beginning of comments. Prior to this PR, the formatter would enforce comments to have a single space before the text, thereby removing the indentation of comment strings.

I have:

coveralls commented 1 year ago

Coverage Status

coverage: 88.607%. remained the same when pulling 6169548fe27886616dc7a914d36a6c471385d15f on Warashi:feature/preserve-spaces-at-head-of-comments into fd040d1890eada858189723281fe86177eac53e4 on vektah:master.