#### Fix comment print (#18581 by @fisker)

<!-- prettier-ignore -->
```gql
# Input
query {
  search(filters: {
    # TODO
  }) {
      id
  }
}

# Prettier stable
Error: Comment "TODO" was not printed. Please report this error!

# Prettier main
query {
  search(
    filters: {
      # TODO
    }
  ) {
    id
  }
}
```
