lib/plurimath/latex/parse.rb in plurimath-0.2.5 vs lib/plurimath/latex/parse.rb in plurimath-0.2.6

- old
+ new

@@ -195,9 +195,11 @@ (slashed_value(first_value, :underover) >> dynamic_power_base) | (slashed_value(first_value, :underover) >> intermediate_exp.maybe.as(:first_value) >> dynamic_power_base) | (slashed_value(first_value, :underover)) when :binary (slashed_value(first_value, :binary) >> intermediate_exp.as(:first_value) >> intermediate_exp.as(:second_value)).as(:binary) + when :text + (slashed_value(first_value, :text) >> (str("{") >> (match("[^\}]").repeat).as(:first_value) >> str("}"))) end end def slashed_value(first_value, name = nil) (slash >> first_value.as(name))