Skip to content

Enhanced enums break highlighting #38

@lukepighetti

Description

@lukepighetti

In helix-editor/helix (which uses UserNobody14/tree-sitter-dart), enhanced enums break syntax highlighting in the remainder of the file

enum TapActionButton {
  right('right'),
  left('left');

  final String keys;

  const TapActionButton(this.keys);

  static TapActionButton fromKey(String key) =>
      TapActionButton.values.singleWhere((e) => e.keys.contains(key));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions