Closed fdncred closed 1 year ago
It seems there is a bug in list-to-tree : As you can see here, there are weird pattern that doesn't looks good regexes The top one is from the main branch, the bottom is from your capture
I'm going to check that
I think I caught the issue There are multiple doubles in your list
list-to-tree only works with unique values 😄. I'll correct that to discard doubles in list-to-tree
Odd that there are dupes, all I did was this help commands | get name | to text | save win-cmds.txt
Ahh, I see it. There's a dfr mean
for dataframe and a dfr mean
for lazyframe.
Ah yeah, nushell interpret that as two different command each, that could explain the result.
I just fixed the issue, git pull list-to-regex and retry with the new regex 👍
Looks better. Thanks for the fix.
@glcraft Can you please help? I just ran list-to-tree on this attached file and it generated a big regex that I tweaked and put in the tmLanguage file under "command".
win-cmds.txt
I'm not sure what exactly that I've done wrong but the syntax highlighting it's quite right. You can see that some things aren't colored at all
I look at things like this
print
command and it has scopes assigned but the foreground color is wrong.For comparison, here's what the current syntax highlighting looks like.
Looks like the scopes may be different too