Describe the bug
Formatting (parsing) breaks with some nested strings inside format strings.
Example:
> echo '$"("a:")"' | nufmt --stdin
$"(", a:")"
> echo '$"(http get "https://google.com")"' | nufmt --stdin
$"(http get ", https://google.com")"
When a similar sequence is present at any point in the script, none of it gets formatted
Environment
Please run show what operating system and version you're running and what version of nufmt you're running.
❯ $nu.os-info
❯ nufmt --version
╭────────────────┬───────────────╮
│ name │ linux │
│ arch │ x86_64 │
│ family │ unix │
│ kernel_version │ 7.2.4-arch1-2 │
╰────────────────┴───────────────╯
nufmt 0.1.4
My Observations about the bug:
This appears to only happen when somewhere inside a template string, there is a string with a :, and something else preceding the colon. Doesn't happen when using nested 'single quote' string
Describe the bug
Formatting (parsing) breaks with some nested strings inside format strings.
Example:
When a similar sequence is present at any point in the script, none of it gets formatted
Environment
Please run show what operating system and version you're running and what version of nufmt you're running.
My Observations about the bug:
This appears to only happen when somewhere inside a template string, there is a string with a
:, and something else preceding the colon. Doesn't happen when using nested'single quote'string