seattlerb/ruby_parser — pull request #31 by lastobelus (2012-02-23 12:58:10+00:00)
Title: fixes for bare hash in Array & ternary with nil no space

also handles several other ternary / new-hash-syntax interactions:

[:a, b: :c]
1?:x:1
1 ? m(a: 2) : 1
1 ? [:a, b: 2] : 1
1 ?o:1

tests for those are in pull request for sexp_processor to follow

can I claim a bounty please :)
great idea by the way. I wanted to use ruby_parser because I wanted to use metric-fu , but probably would never have have gotten around to diving into it to fix these bugs. The actual money of the bounty is pretty insignificant, but the CHALLENGE of the bounty totally worked on me LOL. And I got to play with parser/lexer stuff which I haven't done for years.