Skip to content

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

Open
rik72 wants to merge 8 commits intojelix:masterfrom
rik72:forpullreq
Open

Capability to set / remove comment lines, parse mode normal / numeric only / raw#2
rik72 wants to merge 8 commits intojelix:masterfrom
rik72:forpullreq

Conversation

@rik72
Copy link
Copy Markdown

@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