You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was expecting that two should be matched since it should escape the whitespace but it did not. Also the whitespace should be already be set by default which means that there should be no need to call SetWSPattern
s := NewScanner([]byte("one two three")).SetWSPattern("")
v, e := p(s)
ifv == nil {
t.Errorf("End() didn't match %q", e)
}```
Error message:
End() didn't match &{"one two three" '\x00''\x01' map["^ ":%!q(*regexp.Regexp=&{^ 0xc0003bef00 <nil> 0 65536 [] [] 0 0 0 2 false 4 1 false})] " " %!q(bool=false)}There are few places in tokeniser where it calls SkipWS but not used that Scanner returned by that function. For examplehttps://github.com/prataprc/goparsec/blob/master/tokeniser.go#L85
The text was updated successfully, but these errors were encountered:
I was expecting that two should be matched since it should escape the whitespace but it did not. Also the whitespace should be already be set by default which means that there should be no need to call SetWSPattern
The text was updated successfully, but these errors were encountered: