gleam-lang / tree-sitter-gleam

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

add visibility_modifier and opacity_modifier rules for "pub" and "opaque" #18

Closed the-mikedavis closed 2 years ago

the-mikedavis commented 2 years ago

closes #17

This refactor brings this grammar more in line with tree-sitter-rust. A function or type declaration may have a visibility modifier ("pub") and type declarations may also have an opacity modifier ("opaque"). This ends up reducing the number of named rules, which cleans up the queries a bit.