Closed jpelay closed 3 months ago
Thank you for contributing! Your pull request is now going on the merge train (choo choo! Do not click update from main anymore, and be sure to allow changes to be pushed to your fork).
Thank you for contributing! Your pull request is now going on the merge train (choo choo! Do not click update from main anymore, and be sure to allow changes to be pushed to your fork).
The old way to handle strings, was to use a grammar rule that allowed everything between quotation marks. However, this had the problem that it highlighted even strings that were not complete, and even would mess the highlighting of the next lines. That's why I changed it here to a token rule, and now it properly handles strings that are not well formed.
Another change that I found out while working on this, was that list assignments from level12 onwards were not working properly because they still were expecting text without quotes.
This is the behaviour now:
This is how it looked before:
As you can see now, it's a lot clearer to know the exact line that is causing issues.
Fixes #4874
How to test
Write an unfinished string in any of the levels from 4 onwards.