Skip to content

doc/*.ksy: Fix compilation errors#128

Merged
heinrich5991 merged 1 commit intoheinrich5991:masterfrom
Patiga:fix-ksy
Oct 21, 2025
Merged

doc/*.ksy: Fix compilation errors#128
heinrich5991 merged 1 commit intoheinrich5991:masterfrom
Patiga:fix-ksy

Conversation

@Patiga
Copy link
Collaborator

@Patiga Patiga commented Oct 21, 2025

The ternary/conditional operator '?' includes a ':', which is part of the YAML key/value syntax. Depending on the YAML parser, this in turn may produce parsing errors. Apparently they switched the YAML parser on the web IDE, so now all these YAML files didn't parse. In the documentation they do point this out as a compatibility concern and suggest to quote such expressions.
https://userunknownfactor.github.io/user_guide.html#_operators

Additionally, the new YAML parser pointed out duplicate keys, which I also fixed.

The ternary/conditional operator '?' includes a ':', which is part of
the YAML key/value syntax. Depending on the YAML parser, this in turn
may produce parsing errors. Apparently they switched the YAML parser on
the web IDE, so now all these YAML files didn't parse.
In the documentation they do point this out as a compatibility concern
and suggest to quote such expressions.
https://userunknownfactor.github.io/user_guide.html#_operators

Additionally, the new YAML parser pointed out duplicate keys, which I
also fixed.
@ChillerDragon
Copy link
Contributor

yaml moment

@heinrich5991
Copy link
Owner

Thanks. I assume you tested this?

@heinrich5991 heinrich5991 merged commit ffdc451 into heinrich5991:master Oct 21, 2025
8 checks passed
@Patiga
Copy link
Collaborator Author

Patiga commented Oct 21, 2025

I tested that all files parse after the changes. I only tried out map_v4.ksy and datafile_v4.ksy after the changes and they worked properly

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.

3 participants