lib/code/parser/list.rb in code-ruby-0.7.2 vs lib/code/parser/list.rb in code-ruby-0.7.3

- old
+ new

@@ -2,10 +2,14 @@ class Code class Parser class List < Language def code + Code + end + + def code_present Code.new.present end def whitespace Whitespace @@ -26,16 +30,17 @@ def comma str(",") end def element - code + (whitespace? << code_present << (whitespace? << comma).maybe) | + (whitespace? << code << whitespace? << comma) end def root ( opening_square_bracket.ignore << whitespace? << - (whitespace? << element << (whitespace? << comma).maybe).repeat << + element.repeat << (whitespace? << closing_square_bracket.ignore).maybe ).aka(:list) | String end end end