Skip to content

[Bug] Syntax highlighting of user-defined types in parameters are broken #28

@alihakankurt

Description

@alihakankurt

When the following Tree-sitter query is active in highlights.scm for C# (at line 226 currently):

(parameter (identifier) @variable)

it causes user-defined parameter types to lose their type highlighting. Instead, both the parameter name and the type are highlighted as variables. This breaks the expected syntax highlighting for user-defined types in method signatures.


Current behaviour:

Image

Expected behaviour (when mentioned Tree-sitter query line commented out):

Image

Environment:

  • Zed Version: 0.209.6
  • C# Extension Version: 0.1.3
  • OS: macOS Tahoe 26

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions