tree-sitter-nu icon indicating copy to clipboard operation
tree-sitter-nu copied to clipboard

Errors detected from nushell/nu_scripts

Open blindFS opened this issue 1 year ago • 1 comments

Command

  • [x] - executable path as the command head
    • example: ~/test.nu arg1 arg2
  • [x] - val_interpolated as the external command head
    • example: ^$"($cmd)"

Identifier

  • [x] - command identifier too restricted, example:
    • g++ foo.cpp
    • 7z
    • export module foo/
  • [x] - variable identifier, example:
    • $0
  • [x] - record key should allow more punctuations
    • example: {echo%: foo}

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"

blindFS avatar Nov 16 '24 04:11 blindFS

if anyone wants to work on any one of these specific issues, let me know and i can put your name by the item.

fdncred avatar Nov 16 '24 13:11 fdncred

nushell/nu_scripts is now tracked by the CI workflow .

blindFS avatar Oct 24 '25 12:10 blindFS