tree-sitter/test/fixtures/test_grammars/precedence_on_single_child_negative
Max Brunsfeld 6dc0ff359d Rename spec -> test
'Test' is a lot more straightforward of a name.
2017-03-09 20:40:01 -08:00
..
corpus.txt Rename spec -> test 2017-03-09 20:40:01 -08:00
grammar.json Rename spec -> test 2017-03-09 20:40:01 -08:00
readme.md Rename spec -> test 2017-03-09 20:40:01 -08:00

This grammar resolves the conflict shown in the precedence_on_single_child_missing grammar by giving function_call a negative precedence. This causes reducing the bar variable to an expression to be preferred over shifting the { token as part of function_call.