Skip to content

feature: parameter highlighting? #358

Description

@Akselmo

Did you check the tree-sitter docs?

Is your feature request related to a problem? Please describe.

Hi, I'm not very knowledgeable about treesitter so please bear with me if this is in wrong place.

I am trying to understand why/how I could get highlighting to work with parameters inside functions.

Here's a simple example:

int a, b;
void foo(int c) {
   auto g = a * c;
}

In this snippet, I would expect c within the function to have variable.parameter (or similar, I do not know the proper language) value.

So I could have all parameters same color in Helix for example.

Describe the solution you'd like

If it's at all possible, give any variable that is a parameter of a function a variable.parameter value, so that it can be colored in highlighters.

Describe alternatives you've considered

Living without it..? :'D

Additional context

Again sorry if I'm in wrong place and being bothersome, I suspect this has come across before too but I could not find any relevant issues, maybe my searching skills fail me.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions