lib/qlang/parser/formula_parser.rb in qlang-0.0.27180000 vs lib/qlang/parser/formula_parser.rb in qlang-0.0.27182000
- old
+ new
@@ -8,10 +8,10 @@
until ss.eos?
{ EXP: /\^/, BFUNC: /sin|cos|tan|log/, MUL: /(pi|[1-9a-z]){2,}/, SNGL: /(pi|[1-9a-z])/, OTHER: /([^\^1-9a-z]|^pi)+/ }.each do |token , rgx|
if ss.scan(rgx)
item = case token
when :EXP
- $type == :Ruby ? '**' : '^'
+ $meta_info.lang == :ruby ? '**' : '^'
when :MUL
sss = StringScanner.new(ss[0])
ary = []
until sss.eos?
[/pi/, /[1-9a-z]/].each do |rgx2|