LhKipp / tree-sitter-nu

A tree-sitter grammar for the nushell language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

highlight issue: random line breaks rest of syntax highlighting

colemickens opened this issue · comments

see:

screenshot-1694084282

but if I remove the current line, 218, even though its valid syntax, then highlighting is fixed:

screenshot-1694084330

Here's a simpler case:

let DIR = $env.FILE_PWD
let cache = "nixpkgs-wayland"

this breaks. If you surround $env.FILE_PWD with parens, then it "fixes" syntax highlighting, but AFAIK, this is valid nushell without the parens.

Hi colemickens,

I can't reproduce the issue. Please see the image attached.

image

Maybe this is an issue with Helix, then?

screenshot-1696111908
screenshot-1696111916

This is very embarrassing. Helix is using this repo instead https://github.com/nushell/tree-sitter-nu/.

I will close both of my issues, so sorry about this.

👍🏻

You don't need to feel embarrassed. Glad this got resolved ✌🏻