-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Return invalid code when no , in nuon
nuon doesn't require you to have , to split variables, whitespace are just as valid, since nuon is natively supported by nushell it should also be supported by any nushell formatter
Steps To Reproduce
- get some nuon code with
| to nuon - remove a one of the comma
- try to format it with nufmt
nu -c ('{foobar: [[foo, bar]; [1, 2], [3, 4]], foobar2: [[foo, bar]; [1, 2], [3, 4]]}' | nufmt --stdin)nu -c ('{foobar: [[foo, bar]; [1, 2], [3, 4]] foobar2: [[foo, bar]; [1, 2], [3, 4]]}' | nufmt --stdin)Expected behavior
the outputed code should be valid nushell
Environment
- rustc 1.91.1 (ed61e7d7e 2025-11-07)
[user@system:~]$ rustc --version
output hereIf using Nix please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output hereNotify maintainers
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working