-
Notifications
You must be signed in to change notification settings - Fork 7
Fixes a bug with iterating over the current value #21
New issue
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
base: master
Are you sure you want to change the base?
Conversation
|
Related to this, are there any options available for improving error messages on parse failures? For this bug the error was which tells me nothing. I'm not familiar with proc macros; so I'm not sure if that is the issue or if it's something that could be improved in the library. |
|
Super, thanks! Could you add a test for this in scanner.rs also? Something like bart_tag_matches_scope_section_opener? |
|
Oh, it is possible to make better error messages. The error messages are Unfortunately, it does not seem possible to get the compiler to point anywhere other than at |
|
For this test should SectionType be Iteration? That is what |
|
The SectionType should be Iteration. In your other test you are using this to iterate over a Vec, so that checks out. But it highlights a parsing ambiguity. The syntax for scoping is, for example, |
|
I tried looking into the parsing ambiguity, but I couldn't think of an example to test with. If you have some test cases in mind I can look into it. It might be beyond me though. |
|
Ping @maghoff Did you want to address the parsing ambiguity in this pull request, or in a different one? |
|
Hi, I'm traveling. I'll get to this PR in a while. |
I found this bug when working with Enums. It looks like this is all that is needed to fix it, but I only looked at scanner.rs so I might have missed something.