Fix a typo in lexer message.

Closes GH-976.
Closes GH-980.