Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0e0f55571a | |||
| 127bb58e09 | |||
| 51fea7c982 | |||
| bc8cc375cd | |||
| d9e4f69b9c | |||
| 9442b9432d | |||
| d41cd781d9 | |||
| 651fcb6215 |
@@ -35,13 +35,6 @@ 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