add syntax highlighting to declarations (fixes #12)

Also, I'd like to see some unit tests for this module, if that isn't too much trouble.