You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Encountered an issue today with dictionary pairs with empty values (which is valid for Bruno, both keys and values can be empty). Then I realized that for some reason you can also have an empty key if you'd like. I'm not sure what the point of that is but Bruno can execute a file with for example the following:
assert {
:
}
But this completely breaks parsing with tree-sitter-bruno, you get the following syntax tree.
This should be fine according to bruno's syntax. There's a similar issue for regular dictionaries.
I tried fiddling about with the grammar a little bit but just created more problems than I solved. The liberal use of negative lookaheads combined with "zero or more" in Bruno was more than I could manage to carry over to tree-sitter tonight. But I'll give it another go as soon as I have some time left over.
The text was updated successfully, but these errors were encountered:
Hello!
Encountered an issue today with dictionary pairs with empty values (which is valid for Bruno, both keys and values can be empty). Then I realized that for some reason you can also have an empty key if you'd like. I'm not sure what the point of that is but Bruno can execute a file with for example the following:
But this completely breaks parsing with
tree-sitter-bruno
, you get the following syntax tree.This should be fine according to bruno's syntax. There's a similar issue for regular dictionaries.
I tried fiddling about with the grammar a little bit but just created more problems than I solved. The liberal use of negative lookaheads combined with "zero or more" in Bruno was more than I could manage to carry over to tree-sitter tonight. But I'll give it another go as soon as I have some time left over.
The text was updated successfully, but these errors were encountered: