We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given the following test case
diff --git a/parser_test.go b/parser_test.go index 1ea5924..09d552b 100644 --- a/parser_test.go +++ b/parser_test.go @@ -299,6 +299,13 @@ func TestArrayNestedStrings(t *testing.T) { }) } +func TestUnescapedString(t *testing.T) { + _, err := Load("a = !bssss") + if err == nil { + t.Error("Expecting a parse error") + } +} + func TestMissingValue(t *testing.T) { _, err := Load("a = ") if err.Error() != "(1, 5): expecting a value" {
I originally though the problem is the lexer blocking to read more runes, but it seems like the whole lexRvalue gets into an infinite loop.
The text was updated successfully, but these errors were encountered:
Thanks for the report! Will look into that.
Sorry, something went wrong.
Don't hang when reading an invalid rvalue
961fe2d
Fixes #76
Don't hang when reading an invalid rvalue (#77)
64ff1ea
The lexer didn't have a catch-all rule when lexing an rvalue, causing it to loop indefinitely. Should be all fixed now.
No branches or pull requests
Given the following test case
I originally though the problem is the lexer blocking to read more runes, but it seems like the whole lexRvalue gets into an infinite loop.
The text was updated successfully, but these errors were encountered: