Result: done Files: packages/yaml/src/main.nika packages/yaml/tests/errors_carry_line_and_column.stdout packages/yaml/nikaia.contracts packages/yaml/nikaia.derived packages/yaml/nikaia.lock Commit: yaml: read hexadecimal digits with the built-in hex_digit (#1002) Body: Hex is now h:hex_digit -> { hex_value(h) } and UriChar/TagChar take "%" hex_digit hex_digit; is_hex is gone, since the grammar was its only user (number reading uses hex_value, not is_hex). Escape decoding is unchanged (quoted_scalars passes byte for byte). Two error positions in errors_carry_line_and_column.stdout moved back by one: "x \x4G" was 1:11 at byte 10 and is now 1:10 at byte 9, the G; "\u12" was 1:10 at byte 9 and is now 1:9 at byte 8, the closing quote that is not a digit. x:any if(is_hex(x)) consumed the bad character before its guard failed, so the old position pointed one past it. hex_digit fails where the bad character starts, which is “where reading stopped”. The contracts, derived and lock files follow the source. Part: #1002 Pushed: local ea608eeefa8a57104ee5a5af3f7f279a08d8bbc0 Tests: target/fast/nikaia test –project packages/yaml 14/14 ok (after the .stdout update); it fmt::every_nika_file ok; scripts/pre-push-check.sh ok Gate: green Deviation: errors_carry_line_and_column.stdout updated (2 lines, error offsets of invalid \x and \u escapes now point at the offending character) although the brief said to stop if escape tests change; escape decoding output itself is unchanged Found: none Needs: none Changelog: none Owner: none Disk freed: 0 GB (no clone; shared target/ kept) Rs2nika: none

This site is open source. Improve this page.