Support extensionless <reference> comments.

Fixes #344.