lib/code/parser/list.rb in code-ruby-0.10.4 vs lib/code/parser/list.rb in code-ruby-0.11.0
- old
+ new
@@ -30,11 +30,11 @@
def comma
str(",")
end
def element
- (whitespace? << code_present << (whitespace? << comma).maybe) |
- (whitespace? << code << whitespace? << comma)
+ (whitespace? << code_present << (whitespace? << comma.ignore).maybe) |
+ (whitespace? << code << whitespace? << comma.ignore)
end
def root
(
opening_square_bracket.ignore << whitespace? << element.repeat <<