1 Commits

Author SHA1 Message Date
amery 0f12bf29cc WIP
Signed-off-by: Alejandro Mery <amery@jpi.io>
2023-09-04 15:30:21 +00:00
+18 -1
View File
@@ -69,9 +69,26 @@ func lexQuotedStringNoEscape(p *TextParser) (string, bool, *lexer.Error) {
}
func lexQuotedStringEscaped(*TextParser) (string, *lexer.Error) {
panic("not implemented")
return "", nil
}
// // escaped. append partial
// mark = lexQuotedAppendPartial(p, &buf, mark)
//
// r2, _, err := p.ReadRune()
// switch {
// case err != nil:
// // incomplete
// return "", NewErrIncompleteQuotedString(p)
// case IsNewLine(r2):
// // escaped new line
// p.UnreadRune()
// p.AcceptNewLine()
// mark = lexQuotedAppendNewLine(p, &buf, mark)
// default:
// // bad escaped
// }
// Unquoted removes quotes and unescapes the content
func Unquoted(s string) (string, error) {
var p TextParser