Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7968b06d7e | |||
| 8b0bb69809 | |||
| c9f75bf74a | |||
| 4336ced6a8 | |||
| 67a8fb1387 | |||
| fa8eec7aa1 | |||
| beb7c29fed | |||
| b16aa02140 |
@@ -35,6 +35,13 @@ func NewErrIncompleteQuotedString(p *TextParser) *lexer.Error {
|
||||
return newErrIncomplete(p, "incomplete quoted string")
|
||||
}
|
||||
|
||||
// NewErrIncompleteEscaped returns a [lexer.Error]
|
||||
// indicating the text being parsed wasn't correctly
|
||||
// terminated
|
||||
func NewErrIncompleteEscaped(p *TextParser) *lexer.Error {
|
||||
return newErrIncomplete(p, "incomplete escaped string")
|
||||
}
|
||||
|
||||
func newErrIncomplete(p *TextParser, hint string) *lexer.Error {
|
||||
pos, s := p.Emit()
|
||||
pos.Add(GetPositionalLength(s))
|
||||
|
||||
Reference in New Issue
Block a user