Skip to content

Commit

Permalink
make tokenizer shift function to be public
Browse files Browse the repository at this point in the history
  • Loading branch information
ggmichaelgo committed Nov 7, 2023
1 parent 002627d commit 0b36add
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/liquid_c/tokenizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,9 @@ void liquid_define_tokenizer(void)
rb_define_method(cLiquidTokenizer, "line_number", tokenizer_line_number_method, 0);
rb_define_method(cLiquidTokenizer, "for_liquid_tag", tokenizer_for_liquid_tag_method, 0);
rb_define_method(cLiquidTokenizer, "bug_compatible_whitespace_trimming!", tokenizer_bug_compatible_whitespace_trimming, 0);
rb_define_method(cLiquidTokenizer, "shift", tokenizer_shift_method, 0);

// For testing the internal token representation.
rb_define_private_method(cLiquidTokenizer, "shift", tokenizer_shift_method, 0);
rb_define_private_method(cLiquidTokenizer, "shift_trimmed", tokenizer_shift_trimmed_method, 0);
}

0 comments on commit 0b36add

Please sign in to comment.