Skip parsing declarations not in the same source file

This feels a little bit ghetto, but it seems to work as intended.

Fixes #32.