maltize/sublime-text-2-ruby-tests — pull request #52 by j2fly (2012-02-28 20:07:59+00:00)
Title: Enhance cucumber coloring for pending and failing steps

I dug into the python code a bit more and found where the stdout was being sent to the plugin widget window and injected some trailing comments of #PEND or #ERROR based on a multi-line regex match in python. With the ability to do multiline I was finally able to find JUST the step before the error or pending output (based largely on the indentation of the cucumber output).

The is fairly brittle and definitely coupled to the presentation of the cucumber output, but I'll help maintain it if that ever changes... which hopefully won't be too often (I don't think I've seen it change yet).

So while it does work, it might be horribly factored or quite inefficient as this is my first attempt to write any python... please take a look!

Thanks again,
-Jon