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
config: Allow equal signs (=) between variable names and value #926
Conversation
Codecov Report
@@ Coverage Diff @@
## master #926 +/- ##
==========================================
+ Coverage 14.99% 15.01% +0.01%
==========================================
Files 3701 3701
Lines 355662 355668 +6
==========================================
+ Hits 53339 53390 +51
+ Misses 302323 302278 -45
Continue to review full report at Codecov.
|
Interesting. I think this PR would allow I think the is_split_character, which is not declared externally, should be marked Do we want to enable this optionally, as part of a special mode for now (possibly toggled by extension), or do we want to allow this syntax for all .prc files? |
Yes, it allows any combination of spaces and equal signs. I figured this would be the simplest approach and PRC isn't very strict as is (e.g., anything start with "t" being "true"). I'll fix up the scope of is_split_character() and move it. |
I forced pushed a new version that only allows one equal sign. |
This allows for more INI-style syntax as proposed by panda3d#523. Sections are still not supported.
@rdb Is this PR something we want? What is missing to move this along? More discussion? |
One question I raised for discussion remains unaddressed, and I'd like to carefully consider that before we make this otherwise irreversible change. |
I am going to abandon this PR for now and we can continue discussion in #523. I started this PR in the hopes of quickly getting an issue closed, but I am otherwise not strongly invested in the feature. The code will still be around for someone to pick up. |
This allows for more INI-style syntax as proposed by #523. Sections are
still not supported.