gleam-lang / tree-sitter-gleam

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

Function name sometimes not highlighted #25

Closed lpil closed 2 years ago

lpil commented 2 years ago

Hello! I found an instance in which a function name does not get highlighted. It's not clear to me why this is right away

image

https://github.com/gleam-lang/stdlib/blob/f9d57db847ff2a8471c9136bd309c870b610d04d/src/gleam/uri.gleam#L325

the-mikedavis commented 2 years ago

It looks like the scopes for locals may not be correct for function parameters: if string is captured as a @variable.parameter earlier in the document it will throw off the highlights later:

Should be a small fix I think.