invalid syntax differently categorized

fixed folding and link, too