Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please allow duplicate keys #60

Open
yuusakuri opened this issue Aug 25, 2021 · 2 comments
Open

Please allow duplicate keys #60

yuusakuri opened this issue Aug 25, 2021 · 2 comments

Comments

@yuusakuri
Copy link

For example, the php configuration file php.ini allows multiple same keys, such as extension=NAME1, extension=NAME2.

@yuusakuri
Copy link
Author

yuusakuri commented Aug 25, 2021

I suggest changing the output to something like this:

@(
    @{
        key = value
    }
    'comment line'
    'comment line'
    @{
        key = value
    }
    # ...
)

@PsychoData
Copy link

Hmmm currently - it will add the first Key as a normal "key" and then on finding the second "duplicate" key within the same section - it will convert it to being a list of all the same key. So once they are written out, it would bunch them together again.
so

   key = value
# 'comment line'
# 'comment line'
   key = value
# 'comment line' 

would end up like this I believe

   
# 'comment line'
# 'comment line'
   key = value
   key = value
# 'comment line' 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants