Fragment variables are an experimental extension to GraphQL schema. Formatting should follow the same rules as formatting an OperationDefinition node, hence code is the same.