Skip to content

[Bug] comments in rocks.toml on inline configurations not handled properly #35

@Quitlox

Description

@Quitlox

Hi there, thanks for the work on this project!

When you have a comment describing your inline plugin and call any rocks command that manipulates this configuration, the resulting rocks.toml is broken.

Steps to reproduce

[Before] rocks.toml

[rocks]
[plugins]
"rocks.nvim" = "2.36.1"
"rocks-git.nvim" = "2.0.1"

# Test
"markdown.nvim" = { git = "meanderingprogrammer/markdown.nvim" }

Act

  1. Rocks update

[After] rocks.toml

[rocks]
[plugins]
"rocks.nvim" = "2.36.1"
"rocks-git.nvim" = "2.0.1"

[
# Test
plugins."markdown.nvim" ]
git = "meanderingprogrammer/markdown.nvim"
rev = "v4.1.0^{}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions