Ignore newlines and comments in conditionals. Fixes #1008