Skip to content

nu --ide-ast bugs #156

@maxim-uvarov

Description

@maxim-uvarov

Describe the bug

nu --ide-ast doesn't highlight some tokens properly
image

How to reproduce

Create a .nu file with a content below and open it in vscode:

mkdir test; cd test # cd is not highlighted

def 'abc' [] {} # def and 'abc' are incorrect

def abcd [] {} # all is correct here

Expected behavior

I expected nu to highlight ; cd, and def 'abc' properly

Screenshots

No response

Configuration

key value
version 0.85.0
branch
commit_hash
build_os macos-aarch64
build_target aarch64-apple-darwin
rust_version rustc 1.70.0 (90c541806 2023-05-31)
rust_channel stable-aarch64-apple-darwin
cargo_version cargo 1.70.0 (ec8a8a0ca 2023-04-25)
build_time 2023-09-23 05:58:06 +00:00
build_rust_channel release
allocator mimalloc
features dataframe, default, sqlite, trash, which, zip
installed_plugins

Additional context

No response

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