gleam-lang / tree-sitter-gleam

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

Inconsistent type name highlighting #89

Closed lpil closed 2 months ago

lpil commented 2 months ago

Hello!

I'm having an issue in Neovim where type names are being highlighted inconsistently.

Screenshot 2024-06-11 at 17 38 04

I thought perhaps it is that there's some accidental special case for "List", "Int", "Float", and "String", as if they were a primitive type rather than an object type in an OOP language, though there is no such distinction in Gleam. I couldn't find something like this in the grammar, though I'm very unfamiliar with it.

What might the issue be here?

Thanks, Louis

lpil commented 2 months ago

Ah! I've just learnt about :Inspect and it seems some of them are showing as "builtin". I don't think there should be any such distinction.

lpil commented 2 months ago

Closing as it seems to be here: https://github.com/nvim-treesitter/nvim-treesitter/pull/6757