Closed sspaink closed 5 months ago
Hello, @sspaink and thanks for the contribution!
I see that the tests are failing, I guess, it's due to them being written without considering your use case. Can you please, update them, so that I can merge them? Thanks!
@FallenAngel97 updated my change to fix the tests, query
was being used in more places then I realized so luckily the tests caught that. The tests run successfully locally. I also added a test for this scenario and the resulting syntax tree seems correct. Thanks!
Thanks, can confirm, that locally they work for me as well. Merging
Replacing
literal
withwith_modifier
fixes the highlighting of thewith
keyword on newlines that don't have an expression in front ofwith
.Screenshot showing an example of this change being used in the Zed editor:
Currently:
With this change: