Improve handling of ignored syntax groups (issue #57)