Skip to content

Commit 6fd05b9

Browse files
committed
fix: #304
1 parent ec78026 commit 6fd05b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/graphqlservice/internal/Grammar.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ struct comment : seq<one<'#'>, until<eolf>>
6565
};
6666

6767
// 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>
6969
{
7070
};
7171

@@ -1177,7 +1177,7 @@ struct mixed_definition : sor<executable_definition, type_system_definition, typ
11771177
};
11781178

11791179
struct mixed_document_content
1180-
: seq<bof, opt<utf8::bom>, star<ignored>, // leading whitespace/ignored
1180+
: seq<bof, star<ignored>, // leading whitespace/ignored
11811181
list<mixed_definition, star<ignored>>, // mixed definitions
11821182
star<ignored>, tao::graphqlpeg::eof> // trailing whitespace/ignored
11831183
{
@@ -1189,7 +1189,7 @@ struct mixed_document : must<mixed_document_content>
11891189
};
11901190

11911191
struct executable_document_content
1192-
: seq<bof, opt<utf8::bom>, star<ignored>, // leading whitespace/ignored
1192+
: seq<bof, star<ignored>, // leading whitespace/ignored
11931193
list<executable_definition, star<ignored>>, // executable definitions
11941194
star<ignored>, tao::graphqlpeg::eof> // trailing whitespace/ignored
11951195
{
@@ -1206,7 +1206,7 @@ struct schema_type_definition : sor<type_system_definition, type_system_extensio
12061206
};
12071207

12081208
struct schema_document_content
1209-
: seq<bof, opt<utf8::bom>, star<ignored>, // leading whitespace/ignored
1209+
: seq<bof, star<ignored>, // leading whitespace/ignored
12101210
list<schema_type_definition, star<ignored>>, // schema type definitions
12111211
star<ignored>, tao::graphqlpeg::eof> // trailing whitespace/ignored
12121212
{

0 commit comments

Comments
 (0)