Multiline basic string parsing

This commit is contained in:
Thomas Pelletier
2021-02-05 17:46:40 -05:00
parent ca12c0670d
commit 736a75748b
2 changed files with 122 additions and 1 deletions
+2 -1
View File
@@ -58,7 +58,8 @@ func scan(b []byte) ([]byte, []byte, error) {
case comment:
return scanComment(b)
case ' ', '\t':
return scanWhitespace(b)
data, rest := scanWhitespace(b)
return data, rest, nil
case '\r':
return scanWindowsNewline(b)
case '\n':