Skip to content

Commit 33854d5

Browse files
committed
Use frozen identifiers when parsing schemas
1 parent e8f380e commit 33854d5

File tree

8 files changed

+145
-92
lines changed

8 files changed

+145
-92
lines changed

graphql-c_parser/ext/graphql_c_parser_ext/graphql_c_parser_ext.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include "graphql_c_parser_ext.h"
22

3-
VALUE GraphQL_CParser_Lexer_tokenize_with_c(VALUE self, VALUE query_string) {
4-
return tokenize(query_string);
3+
VALUE GraphQL_CParser_Lexer_tokenize_with_c_internal(VALUE self, VALUE query_string, VALUE fstring_identifiers) {
4+
return tokenize(query_string, RTEST(fstring_identifiers));
55
}
66

77
VALUE GraphQL_CParser_Parser_c_parse(VALUE self) {
@@ -13,7 +13,7 @@ void Init_graphql_c_parser_ext() {
1313
VALUE GraphQL = rb_define_module("GraphQL");
1414
VALUE CParser = rb_define_module_under(GraphQL, "CParser");
1515
VALUE Lexer = rb_define_module_under(CParser, "Lexer");
16-
rb_define_singleton_method(Lexer, "tokenize_with_c", GraphQL_CParser_Lexer_tokenize_with_c, 1);
16+
rb_define_singleton_method(Lexer, "tokenize_with_c_internal", GraphQL_CParser_Lexer_tokenize_with_c_internal, 2);
1717
setup_static_token_variables();
1818

1919
VALUE Parser = rb_define_class_under(CParser, "Parser", rb_cObject);

0 commit comments

Comments
 (0)