tree-sitter / tree-sitter-go

Go grammar for tree-sitter
MIT License
310 stars 65 forks source link

Expose `statement list` #100

Closed dvmarcilio closed 1 year ago

dvmarcilio commented 1 year ago

Hi. We would like to match the child nodes of a block in a single capture. Thus, I'm exposing statement_list.

Currently, if we match a block we also get the braces { }.

By exposing statement_list, we can match the content without the braces. Below is a local playground with the modifications.

Checklist:

dvmarcilio commented 1 year ago

Sorry. This PR was meant to be made into our repo fist. We'll discuss it internally and probably submit it here as well.