From 16d5f404742d04fdfcf0672a5d4cc2d112c8a609 Mon Sep 17 00:00:00 2001 From: Isha Date: Sun, 2 Mar 2014 23:55:04 +0000 Subject: [PATCH] wip --- ext/liquid/variable.c | 32 ++++++++++++++++++++++---------- test/liquid/variable_test.rb | 2 +- 2 files changed, 23 insertions(+), 11 deletions(-) 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