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

Capability to set / remove comment lines, parse mode normal / numeric only / raw #2

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

rik72
Copy link

@rik72 rik72 commented Mar 13, 2021

This is my attempt at adding the following additional capabilities:

  • set / remove comment lines
  • set parsing mode
    • PR_NORMAL: the original behaviour, parsing "on"/"true"/"yes" to PHP true, etc
    • PR_NUMERIC: parsing to integer / float values only numeric values
    • PR_RAW: setting all values to string format with quotes

I changed just one single behaviour: adding a parameter to a section will put it before blank lines. This is to consistently use blank lines as separator between sections, which is in my opinion desirable for readability.

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

Successfully merging this pull request may close these issues.

1 participant