fixed #445: macros not being properly parsed for syntax checks