This whole method looks to "complex". But I'm undershugared and I'm grabbing some food now. I think we can dry it up a lot. But I dont have an idea  now (have to look into whitequark parser comment structure before).