Skip to content

Empty tree-sitter-highlight-name and incorrect names (dart) #14502

@jimmyff

Description

@jimmyff

Summary

Hey,

I've been making an effort to try and use helix as my full time ide for dart and flutter development but the syntax highlighting has been frustrating so i've attempted to fix in a theme but I've found that the tree-sitter-highlight-name are often empty which gives me no way to theme them correctly. It's weird as it seems to do this somewhat inconsistently, some parts of the code it handles method names correctly, other they are just blank:

Image

but further down you can see it's handling them correctly:

Image

Here is another example of parameter values/ variables:

Image Image
Image Image

Here is another example with type information being provided:

Image Image

dart health:

Image

Is this an issue with the helix or treesitter's Dart syntax interpretation?

Reproduction Steps

Helix log

Platform

Maxos + linux

Terminal Emulator

Kitty

Installation Method

nix

Helix Version

helix 25.07.1 (a05c151)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions