Improve error highlighting about square brackets

Fixes #5