Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0dd29272e9 | |||
| 7fab1a799a | |||
| 16dfde1503 | |||
| 41d7c6e04d | |||
| 48adaeb8a8 | |||
| 99ca8d0b3b | |||
| 986b6d1c6d | |||
| d41cd781d9 | |||
| 651fcb6215 |
@@ -35,13 +35,6 @@ func NewErrIncompleteQuotedString(p *TextParser) *lexer.Error {
|
|||||||
return newErrIncomplete(p, "incomplete quoted string")
|
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 {
|
func newErrIncomplete(p *TextParser, hint string) *lexer.Error {
|
||||||
pos, s := p.Emit()
|
pos, s := p.Emit()
|
||||||
pos.Add(GetPositionalLength(s))
|
pos.Add(GetPositionalLength(s))
|
||||||
|
|||||||
Reference in New Issue
Block a user