Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
WIP: Allow certain, simple Jinja values to be unquoted. #36331
This allows the following to be unquoted:
The above is valid YAML but semantically means something like this:
This patch looks for events of that form coming from the parser, and
You can test this with the simple files here: https://gist.github.com/anonymous/48b8744dcafd8f6e6bdac3803e77aa4b
This is just a proof of concept. It only works for simple values that happen to be valid YAML:
changed the title from
Allow certain, simple jinja values to be unquoted.
WIP: Allow certain, simple Jinja values to be unquoted.
Feb 16, 2018
I added a couple commits to solidify the logic.
The logic is:
The result is that certain unquoted Jinja values will work. If they don't work, they will simply fail in the same way they always did.