Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0f12bf29cc |
+18
-1
@@ -69,9 +69,26 @@ func lexQuotedStringNoEscape(p *TextParser) (string, bool, *lexer.Error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func lexQuotedStringEscaped(*TextParser) (string, *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
|
// Unquoted removes quotes and unescapes the content
|
||||||
func Unquoted(s string) (string, error) {
|
func Unquoted(s string) (string, error) {
|
||||||
var p TextParser
|
var p TextParser
|
||||||
|
|||||||
Reference in New Issue
Block a user