Hide Message fields
This commit is contained in:
@ -72,11 +72,7 @@ func Regexp(str string) gigaparsec.Parser[byte, string] {
|
||||
if err != nil {
|
||||
return gigaparsec.Result[byte, string]{}, fmt.Errorf("Regexp: unexpected error: %w", err)
|
||||
}
|
||||
return gigaparsec.Fail[byte, string](false, gigaparsec.Message{
|
||||
Pos: input.Pos(),
|
||||
Got: string(got),
|
||||
Expected: []string{expected},
|
||||
}), nil
|
||||
return gigaparsec.Fail[byte, string](false, gigaparsec.MakeMessage(input.Pos(), string(got), expected)), nil
|
||||
}
|
||||
// Alas, this is a little wasteful because a Regexp can only return indices
|
||||
// when searching a RuneReader.
|
||||
|
Reference in New Issue
Block a user