chimpler / pyhocon

HOCON parser for Python
Apache License 2.0
502 stars 118 forks source link

key containing a dot adds extra quotes #267

Open aFelipeSP opened 3 years ago

aFelipeSP commented 3 years ago

I found that the keys that contain a dot inside double quotes end up including the double quotes in the key string. Here are some examples

{"." = a value}  // results in {'"."' : "a value"}

{".key" = a value}  // results in {'".key"' : "a value"}

{"a.key" = a value}  // results in {'"a.key"' : "a value"}

I need to use a key with a dot inside it, and this won't let me do it. Is there a way to create a key with a dot inside without the additional double quotes?

aFelipeSP commented 3 years ago

actually it happens with : and = characters too