Skip to content

add parse_with option to parse_config()#87

Open
corynezin wants to merge 1 commit intogoogle:masterfrom
corynezin:parse-with-scope
Open

add parse_with option to parse_config()#87
corynezin wants to merge 1 commit intogoogle:masterfrom
corynezin:parse-with-scope

Conversation

@corynezin
Copy link
Copy Markdown

Hoping to help facilitate discussion of #86

This is a relatively simple change which allows a user to parse a config with with a scope, essentially just prepending the scope to every statement. One thing this option breaks is using a macro defined in a scope, for example:

X = 1
foo.bar = %X

Will fail if this file is parsed with a scope since it would be equivalent to

scope/X = 1
scope/foo.bar = %X

Please leave any comments or suggestions

@google-cla google-cla bot added the cla: yes label Aug 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant