-
-
Notifications
You must be signed in to change notification settings - Fork 476
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(graphql_formatter): panic in block comments with empty line
Also allows the formatter to format line with only spaces and tabs
- Loading branch information
1 parent
30e238d
commit 519cc11
Showing
3 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...iome_graphql_formatter/tests/specs/prettier/graphql/comments/fields.graphql.prettier-snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
query { | ||
someField # Trailing comment | ||
} | ||
|
||
type Foo { | ||
""" | ||
empty line | ||
|
||
line with spaces and tabs | ||
|
||
comment | ||
""" | ||
bar: Int | ||
} |