git @ Cat's Eye Technologies Castile / c511cbb
Fix generated Ruby that worked in Ruby 1.8 but fails in Ruby 1.9. Chris Pressey 9 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
161161 self.commas(ast.children[1:])
162162 self.out.write('}')
163163 elif ast.tag == 'FieldInit':
164 self.out.write("'%s'," % ast.value)
164 self.out.write("'%s'=>" % ast.value)
165165 self.compile(ast.children[0])
166166 elif ast.tag == 'Index':
167167 self.compile(ast.children[0])