lytics / confl

Config parser for go, modeled after Nginx format, Nice lenient syntax with Comments
MIT License
138 stars 20 forks source link

Maybe multi-line strings should remove common indent #3

Closed tv42 closed 9 years ago

tv42 commented 9 years ago

Perhaps this would make sense. I can see a lot of callers wanting this; I did.

Inspiration:

Be careful to preserve inner indentation. That is:

foo (
    # I am an embedded markdown article

    Blah blah.

        func code() {
            // code inside markdown is indented more
        }

)

Note that the # there is not a comment, it's inside the string literal (this is already current confl behavior).

araddon commented 9 years ago

good idea, got a pr up ill merge it in soon unless you want to comment.