lib/plurimath/latex/parse.rb in plurimath-0.3.0 vs lib/plurimath/latex/parse.rb in plurimath-0.3.1
- old
+ new
@@ -206,10 +206,10 @@
(slash >> first_value.as(name))
end
def unary_rules(first_value)
(slashed_value(first_value, :unary_functions) >> dynamic_power_base) |
- (slashed_value(first_value, :unary) >> intermediate_exp.as(:first_value)).as(:unary_functions) |
+ (slashed_value(first_value, :unary) >> (left_right | intermediate_exp).as(:first_value)).as(:unary_functions) |
(slashed_value(first_value, :unary))
end
def dynamic_power_base
(base >> intermediate_exp.as(:subscript) >> power >> intermediate_exp.as(:supscript)) |