Closed IcedQuinn closed 1 year ago
Yeah it's actually something that has been bothering me as of late with misleading errors that have nothing to do with the bug itself. It really makes the development a little bit... Tricky?
Are there any updates on when this might get fixed? Such misleading errors makes debugging difficult…
I changed the error message to:
test.nelua:20:3: syntax error: unexpected statement syntax, did you forgot an `end` or are using an invalid syntax?
result += input * xxhash.prime32[2]
I hope that makes the error message more clear, that you attempted to use an invalid syntax. The parser has no concept of compound assignment operators, so I don't see how we could improve more.
In the following code:
This can create the following misleading error: