|
2 | 2 | #include "parser.h" |
3 | 3 | #include "lexer.h" |
4 | 4 |
|
5 | | -static VALUE cLiquidRangeLookup, cLiquidVariableLookup, cRange, vLiquidExpressionLiterals; |
| 5 | +static VALUE cLiquidRangeLookup, cLiquidVariableLookup, cReversableRange, vLiquidExpressionLiterals; |
6 | 6 | static ID idToI, idEvaluate; |
7 | 7 |
|
8 | 8 | void init_parser(parser_t *p, const char *str, const char *end) |
@@ -81,7 +81,7 @@ static VALUE parse_range(parser_t *p) |
81 | 81 | if (rb_respond_to(args[0], idEvaluate) || rb_respond_to(args[1], idEvaluate)) |
82 | 82 | return rb_class_new_instance(2, args, cLiquidRangeLookup); |
83 | 83 |
|
84 | | - return rb_class_new_instance(2, args, cRange); |
| 84 | + return rb_class_new_instance(2, args, cReversableRange); |
85 | 85 | } |
86 | 86 |
|
87 | 87 | static VALUE parse_variable(parser_t *p) |
@@ -184,7 +184,7 @@ void init_liquid_parser(void) |
184 | 184 | idEvaluate = rb_intern("evaluate"); |
185 | 185 |
|
186 | 186 | cLiquidRangeLookup = rb_const_get(mLiquid, rb_intern("RangeLookup")); |
187 | | - cRange = rb_const_get(rb_cObject, rb_intern("Range")); |
| 187 | + cLiquidReversableRange = rb_const_get(mLiquid, rb_intern("ReversableRange")); |
188 | 188 | cLiquidVariableLookup = rb_const_get(mLiquid, rb_intern("VariableLookup")); |
189 | 189 |
|
190 | 190 | VALUE cLiquidExpression = rb_const_get(mLiquid, rb_intern("Expression")); |
|
0 commit comments