tree-sitter-nu
tree-sitter-nu copied to clipboard
Errors detected from nushell/nu_scripts
Command
- [x] - executable path as the command head
- example:
~/test.nu arg1 arg2
- example:
- [x] - val_interpolated as the external command head
- example:
^$"($cmd)"
- example:
Identifier
- [x] - command identifier too restricted, example:
g++ foo.cpp7zexport module foo/
- [x] - variable identifier, example:
$0
- [x] - record key should allow more punctuations
- example:
{echo%: foo}
- example:
Redirection
- [x] - append ops, example
1 o>> foo - [x] - values redirection, example
1 + 1 o> foo - [x] - redirect pipes should be single token, example
cmd1 e>| cmd2
Parameters/command args
- [x] - single
-should be allowed as short_flag - [x] - short_flag_equals_value:
-flag=foo - [x] - unquoted as default value in parameters:
--flag=name:string@"nu-complete flag" - [x] - list types with completion info:
--flag(-f): list<string@"nu-complete flag"> - [x] - spread types: #98
Misc
- [x] - variable as cell_path:
$foo.$bar.$baz - [ ] - unquoted strings with more punctuations:
echo foo"bar"
if anyone wants to work on any one of these specific issues, let me know and i can put your name by the item.
nushell/nu_scripts is now tracked by the CI workflow .