@@ -65,7 +65,7 @@ struct comment : seq<one<'#'>, until<eolf>>
65
65
};
66
66
67
67
// https://spec.graphql.org/October2021/#sec-Source-Text.Ignored-Tokens
68
- struct ignored : sor<space, one<' ,' >, comment>
68
+ struct ignored : sor<utf8::bom, space, one<' ,' >, comment>
69
69
{
70
70
};
71
71
@@ -1177,7 +1177,7 @@ struct mixed_definition : sor<executable_definition, type_system_definition, typ
1177
1177
};
1178
1178
1179
1179
struct mixed_document_content
1180
- : seq<bof, opt<utf8::bom>, star<ignored>, // leading whitespace/ignored
1180
+ : seq<bof, star<ignored>, // leading whitespace/ignored
1181
1181
list<mixed_definition, star<ignored>>, // mixed definitions
1182
1182
star<ignored>, tao::graphqlpeg::eof> // trailing whitespace/ignored
1183
1183
{
@@ -1189,7 +1189,7 @@ struct mixed_document : must<mixed_document_content>
1189
1189
};
1190
1190
1191
1191
struct executable_document_content
1192
- : seq<bof, opt<utf8::bom>, star<ignored>, // leading whitespace/ignored
1192
+ : seq<bof, star<ignored>, // leading whitespace/ignored
1193
1193
list<executable_definition, star<ignored>>, // executable definitions
1194
1194
star<ignored>, tao::graphqlpeg::eof> // trailing whitespace/ignored
1195
1195
{
@@ -1206,7 +1206,7 @@ struct schema_type_definition : sor<type_system_definition, type_system_extensio
1206
1206
};
1207
1207
1208
1208
struct schema_document_content
1209
- : seq<bof, opt<utf8::bom>, star<ignored>, // leading whitespace/ignored
1209
+ : seq<bof, star<ignored>, // leading whitespace/ignored
1210
1210
list<schema_type_definition, star<ignored>>, // schema type definitions
1211
1211
star<ignored>, tao::graphqlpeg::eof> // trailing whitespace/ignored
1212
1212
{
0 commit comments