Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7d53845bef | |||
| 7bed648af3 |
+1
-18
@@ -69,26 +69,9 @@ func lexQuotedStringNoEscape(p *TextParser) (string, bool, *lexer.Error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func lexQuotedStringEscaped(*TextParser) (string, *lexer.Error) {
|
func lexQuotedStringEscaped(*TextParser) (string, *lexer.Error) {
|
||||||
return "", nil
|
panic("not implemented")
|
||||||
}
|
}
|
||||||
|
|
||||||
// // 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