lib/asciimath/parser.rb in asciimath-1.0.5 vs lib/asciimath/parser.rb in asciimath-1.0.6
- old
+ new
@@ -475,10 +475,10 @@
case t1[:type]
when :lparen, :lrparen
t2 = tok.next_token
case t2[:type]
when :rparen, :lrparen
- {:type => :paren, :e => e, :lparen => t1[:value], :rparen => t2[:value]}
+ {:type => :paren, :e => nil, :lparen => t1[:value], :rparen => t2[:value]}
else
tok.push_back(t2)
e = parse_expression(tok, depth + 1)