Skip to content

JavaScript/TSX Invalid Node Type "function_expression" #14691

@babucarr32

Description

@babucarr32

Summary

When I pulled from master yesterday the syntax highlighting was broken for js, ts, and tsx. When I checked the logs I saw the following error

helix_core::syntax [ERROR] Failed to compile highlights for 'javascript': invalid node type "function_expression"

The commit logs from master shows that its comming from here
Checking out a few commits before this commit fixed the issue for me.

Reproduction Steps

Pull from master HEAD de0518d0e631f1984dc7229b76c2bdadf2bffe5d

I tried this:

  1. hx

I expected this to happen:

Instead, this happened:

Helix log

helix_core::syntax [ERROR] Failed to compile highlights for 'javascript': invalid node type "function_expression"

Platform

macOS

Terminal Emulator

Warp

Installation Method

source

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