Skip to content

fix parsing of force replace comment on maps and arrays#11

Open
kyleadams-nflx wants to merge 1 commit into
drlau:masterfrom
kyleadams-nflx:kadams/fix-force-replace-on-maps-and-objects
Open

fix parsing of force replace comment on maps and arrays#11
kyleadams-nflx wants to merge 1 commit into
drlau:masterfrom
kyleadams-nflx:kadams/fix-force-replace-on-maps-and-objects

Conversation

@kyleadams-nflx
Copy link
Copy Markdown

Handling existed for simple attributes that caused a forced replacement, but if the same indicator appears on a map or array, it fails with a parsing error. Specifically this is not handled:

~ mapName { # forces replacement

or this

~ arrayName [ # forces replacement

but this was already being handled correctly:

~ simpleparam = "old value" -> "new value" # forces replacement

This PR adds handling for that comment in the array and map cases, and adds a test case to ensure it works.

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