lib/ustate/query_string.treetop in ustate-client-0.0.3 vs lib/ustate/query_string.treetop in ustate-client-0.0.4

- old
+ new

@@ -90,11 +90,11 @@ end } end rule value - double_quoted_string / float / integer + double_quoted_string / float / integer / null end rule integer '-'? [0-9]+ { def ruby_value @@ -130,9 +130,18 @@ # This doesn't work! Taken from the docs... :( rule double_quoted_string '"' (!'"' . / '\"')* '"' { def ruby_value text_value[1..-2].gsub('\"', '"') + end + alias sql ruby_value + } + end + + rule null + ('null' / 'nil') { + def ruby_value + nil end alias sql ruby_value } end