@@ -12,7 +12,7 @@ namespace facebook {
12
12
namespace graphql {
13
13
namespace peg {
14
14
15
- using namespace tao ::pegtl ;
15
+ using namespace tao ::graphqlpeg ;
16
16
17
17
template <typename _Rule>
18
18
void for_each_child (const ast_node& n, std::function<bool (const ast_node&)>&& func)
@@ -94,13 +94,13 @@ struct string_escape_sequence
94
94
};
95
95
96
96
struct string_quote_character
97
- : source_character
97
+ : plus<seq<not_at<backslash_token>, not_at<quote_token>, not_at<ascii::eol>, source_character>>
98
98
{
99
99
};
100
100
101
101
// https://facebook.github.io/graphql/June2018/#StringCharacter
102
102
struct string_quote
103
- : if_must<quote_token, star<seq<not_at<quote_token>, not_at<ascii::eol>, sor<string_escape_sequence, string_quote_character> >>, quote_token>
103
+ : if_must<quote_token, star<sor<string_escape_sequence, string_quote_character>>, quote_token>
104
104
{
105
105
};
106
106
@@ -110,18 +110,18 @@ struct block_quote_token
110
110
};
111
111
112
112
struct block_escape_sequence
113
- : if_must <backslash_token, block_quote_token>
113
+ : seq <backslash_token, block_quote_token>
114
114
{
115
115
};
116
116
117
117
struct block_quote_character
118
- : source_character
118
+ : plus<seq<not_at<block_quote_token>, not_at<block_escape_sequence>, source_character>>
119
119
{
120
120
};
121
121
122
122
// https://facebook.github.io/graphql/June2018/#BlockStringCharacter
123
123
struct block_quote
124
- : if_must<block_quote_token, star<seq<not_at<block_quote_token>, sor<block_escape_sequence, block_quote_character> >>, block_quote_token>
124
+ : if_must<block_quote_token, star<sor<block_escape_sequence, block_quote_character>>, block_quote_token>
125
125
{
126
126
};
127
127
@@ -804,7 +804,7 @@ struct definition
804
804
805
805
// https://facebook.github.io/graphql/June2018/#Document
806
806
struct document
807
- : must<bof, opt<utf8::bom>, star<ignored>, list<definition, plus<ignored>>, star<ignored>, tao::pegtl ::eof>
807
+ : must<bof, opt<utf8::bom>, star<ignored>, list<definition, plus<ignored>>, star<ignored>, tao::graphqlpeg ::eof>
808
808
{
809
809
};
810
810
0 commit comments