Reparse the buffer before completing
Merge pull request #5 from dgutov/reparse

Reparse the buffer before completing