diff --git a/parser/parser_test.go b/parser/parser_test.go index 85c9482..8a80925 100644 --- a/parser/parser_test.go +++ b/parser/parser_test.go @@ -1236,7 +1236,7 @@ b: - 2 { ">\n>", ` -[2:1] could not find multi line content +[2:1] could not find multi-line content 1 | > > 2 | > ^ @@ -1245,7 +1245,7 @@ b: - 2 { ">\n1", ` -[2:1] could not find multi line content +[2:1] could not find multi-line content 1 | > > 2 | 1 ^ @@ -1254,7 +1254,7 @@ b: - 2 { "|\n1", ` -[2:1] could not find multi line content +[2:1] could not find multi-line content 1 | | > 2 | 1 ^ @@ -1263,7 +1263,7 @@ b: - 2 { "a: >3\n 1", ` -[2:3] invalid number of indent is specified in the multi line header +[2:3] invalid number of indent is specified in the multi-line header 1 | a: >3 > 2 | 1 ^ diff --git a/scanner/context.go b/scanner/context.go index 06e1fc4..4f3250b 100644 --- a/scanner/context.go +++ b/scanner/context.go @@ -168,7 +168,7 @@ func (s *MultiLineState) validateIndentColumn() error { return nil } if s.firstLineIndentColumn > s.lineIndentColumn { - return errors.New("invalid number of indent is specified in the multi line header") + return errors.New("invalid number of indent is specified in the multi-line header") } return nil } diff --git a/scanner/scanner.go b/scanner/scanner.go index 96ab0b8..4ef05e3 100644 --- a/scanner/scanner.go +++ b/scanner/scanner.go @@ -1282,7 +1282,7 @@ func (s *Scanner) scan(ctx *Context) error { if tk.Position.Column == 1 { return ErrInvalidToken( token.Invalid( - "could not find multi line content", + "could not find multi-line content", string(ctx.obuf), s.pos(), ), )