Rebase on upstream/master and add new features.#9
Rebase on upstream/master and add new features.#9jcass77 wants to merge 6 commits intorudimeier:nextfrom
Conversation
Add confifuration parameter to optionally allow empty values. Add support to handle indented comments and multi-line values. Additional test scripts to check Python config parser compatibility https://docs.python.org/3/library/configparser.html Tests passed! Tests passed! Tests passed!
|
@jcass77 First nice features. But I got one little problem with your changes while I was adding an array support (like in php). Now it is not possible to have for example URLs in your INI file anymore. Error message: I think the right way is to use the first character of '=' or ':' unless this character is in a quotation marks section. What do you think is the right way? |
|
You will probably have to change the regular expressions in I don't have an answer for you off hand, but you could perhaps use a regular expression debugger to try a few variations until you come up with something that works for the examples above. |
|
I had some time this weekend to look into this problem. My intention was to implement the support for arrays like in php. The problem now is that the hole syntax was changed. Is there really a reason to support keys with special characters? If I find time in the next weeks I will probably look for a solution again. To share some knowledge: Declaring a global array: To clear a whole array unset is perfectly fine. To support array with the old syntax's something like this could be possible: If I am not wrong the right place for this code should be right after the following code snippet: |
|
Sorry for not responding for a long time. I haven't looked into this pull request yet. @HeinrichAD the array version of bash_ini_parser is already there in the "next" branch. |
|
@rudimeier thanks for the information. I will check this later. |
Add confifuration parameter to optionally allow empty values.
Add support to handle indented comments and multi-line values.
Additional test scripts to check Python config parser compatibility https://docs.python.org/3/library/configparser.html