gleam-lang / tree-sitter-gleam

🌳 A tree-sitter grammar for the Gleam programming language
Apache License 2.0
71 stars 13 forks source link

use fields for left,operator,right of binary expressions #9

Closed the-mikedavis closed 2 years ago

the-mikedavis commented 2 years ago

This is also from the elixir grammar. It's not a huge difference but IMO it makes writing queries easier for that node, in particular the (binary_expression operator: _ @operator) case, but with left and right fields, you can also be more specific when writing a stanza for capturing a pipe operator for example.