Skip to content

topiary errors on optional parameter that starts with $ #8

@maxim-uvarov

Description

@maxim-uvarov

Here is some minor edge case. I'm reporting this just in case you find it important.

> r#'def 'test' [$a?] {$a}'# | save optional.nu -f


> topiary format optional.nu
[2025-02-27T03:04:53Z ERROR topiary] Parsing error between line 1, column 15 and line 1, column 16
# but this works
> r#'def 'test' [a?] {$a}'# | save optional.nu -f

Please, feel free to close without resolution 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions