lib/junoser/transformer.rb in junoser-0.3.3 vs lib/junoser/transformer.rb in junoser-0.3.4

- old
+ new

@@ -42,9 +42,17 @@ rule(oneline: sequence(:strs)) do strs.join(' ') end + rule(enum: simple(:str)) do + str.to_s.gsub("\n", ' ') + end + + rule(enum: sequence(:strs)) do + strs.join(' ') + end + def self.remove_slash_asterisk(array) open = array.index("arg(/*)\n") close = array.index("arg(*/)")