diff --git a/ext/liquid/variable.c b/ext/liquid/variable.c index c90957c..7c011cb 100644 --- a/ext/liquid/variable.c +++ b/ext/liquid/variable.c @@ -62,7 +62,7 @@ static char * get_quoted_fragment(char * cursor, int len, VALUE self) } if (count == len && start != -1 && end == -1) end = len-1; -form_name: + form_name: if (end > start) { rb_iv_set(self, "@name", rb_str_new(&cursor[start], end-start+1)); return &cursor[end+1]; @@ -72,30 +72,42 @@ form_name: } } -static void rb_variable_lax_parse_new(VALUE self, VALUE m) +static VALUE get_filters(char * cursor, int len, VALUE self) { + int count = 0; + + while(count