yaml / yaml-spec

YAML Specification
http://yaml.org/spec/
348 stars 53 forks source link

Format productions in Python script #251

Closed Thom1729 closed 3 years ago

Thom1729 commented 3 years ago

Automatically set IDs and link production names in the Python script.

The first commit is a straight conversion with no change to the output. Subsequent commits:

This implementation also prints a warning if it links a rule that does not exist. The old implementation did this several times. Most of these were in comments that shouldn't have been linked, and that's fixed in this PR. However, flow-plain-scalar-character incorrectly refers to non-space-characters instead of non-space-character. That should be fixed in a separate PR.

This is marked as a spec change because of the three points listed above.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Thom1729 commented 3 years ago

https://spec.yaml.io/pr-251/spec/1.3.0/