diff options
Diffstat (limited to 'parse.go')
-rw-r--r-- | parse.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -658,7 +658,7 @@ func (par *Parser) HandleRune(c rune) (RuneType, error) { func (par *Parser) expectRune(c, exp rune, typ RuneType, context string, pop bool) (RuneType, error) { if c != exp { - return RuneTypeError, fmt.Errorf("%s: unexpected character: %q", context, c) + return RuneTypeError, fmt.Errorf("invalid character %q in literal %s (expecting %q)", c, context, exp) } if pop { par.popState() |