yeptris 0.6.76.0-powerpc64le-linux → 0.6.78.0-powerpc64le-linux
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/yeptris_native/version.h +2 -2
- data/lib/yeptris.rb +1 -1
- data/libyeptris.so +0 -0
- data/vendor/libyeptris/CMakeLists.txt +1 -1
- data/vendor/libyeptris/src/yeptris/emit/writer.c +19 -0
- data/vendor/libyeptris/src/yeptris/parse/engine.c +29 -12
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d4687829ba2edf8ca907d9460a406dd41d5f0a3e04cdc3190ffff6173038fc31
|
|
4
|
+
data.tar.gz: 4525e5694b57ebe0426aec94b6d38f4c423221a312410a847f854c98f742eb81
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9f300cad7da8dc61596ccf6bca723d8f7a69f98c433f57baead8abb6a134fcfb62ac2c435a514e84ef360176cb899ec2a838364eddbfa4284ce055d3cccb435f
|
|
7
|
+
data.tar.gz: 1bfb1cf9033f765011ed6eb6ad9e2706e40493573b1d40273dde04279747ff77973b3a5020e5cf84123d664e5ab4140b4efda31e8fd149db397b652f7e1554a8
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
|
|
12
12
|
#define YEPTRIS_VERSION_MAJOR 0
|
|
13
13
|
#define YEPTRIS_VERSION_MINOR 6
|
|
14
|
-
#define YEPTRIS_VERSION_PATCH
|
|
15
|
-
#define YEPTRIS_VERSION_STRING "0.6.
|
|
14
|
+
#define YEPTRIS_VERSION_PATCH 78
|
|
15
|
+
#define YEPTRIS_VERSION_STRING "0.6.78"
|
|
16
16
|
|
|
17
17
|
#ifdef __cplusplus
|
|
18
18
|
extern "C" {
|
data/lib/yeptris.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Yeptris
|
|
4
4
|
# The gem's version lives in the parent namespace's file — the last
|
|
5
5
|
# internal require (yeptris/version) retired with it.
|
|
6
|
-
VERSION = "0.6.
|
|
6
|
+
VERSION = "0.6.78.0".freeze
|
|
7
7
|
|
|
8
8
|
# Informational notices are OPT-IN (yeptris-ruby#217): consumers
|
|
9
9
|
# embed yeptris inside CLIs that assert clean stderr, and a
|
data/libyeptris.so
CHANGED
|
Binary file
|
|
@@ -1213,6 +1213,25 @@ static void emit_scalar(yep_writer* w, const yep_dnode* n, int parent_col, int a
|
|
|
1213
1213
|
wr_put(w, "~", 1);
|
|
1214
1214
|
break;
|
|
1215
1215
|
}
|
|
1216
|
+
/* the round-44 twin on the empty-inline spell: an anchor whose
|
|
1217
|
+
* name ends at ':' must never spell line-final — "k: &n:" + EOL
|
|
1218
|
+
* hands the scanner's riding-colon law to the NEXT line, and a
|
|
1219
|
+
* props/flow/block-led follower un-consumes the colon (the r358
|
|
1220
|
+
* artifact: "&4:- \"\": &4: " + "\n&1 ..." died at re-parse,
|
|
1221
|
+
* "mapping values are not allowed in this context" at the
|
|
1222
|
+
* stripped colon). A non-empty inline value already puts a
|
|
1223
|
+
* plain-led byte on the anchor's own line; the explicit-empty
|
|
1224
|
+
* quoted spell gives the empty twin the same follower
|
|
1225
|
+
* ("k: &n: ''"), and round 2 re-spells it byte-identically (the
|
|
1226
|
+
* quoted style is sticky). Non-scalar and block-style twins
|
|
1227
|
+
* keep the round-44 fail in anchor_name_unspellable. */
|
|
1228
|
+
if (n->anchor.len > 0) {
|
|
1229
|
+
yep_view av = wv(w, n->anchor);
|
|
1230
|
+
if (av.len > 0 && av.p[av.len - 1] == ':') {
|
|
1231
|
+
wr_put(w, "''", 2);
|
|
1232
|
+
break;
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1216
1235
|
break; /* an empty plain value emits as nothing (libyaml's null
|
|
1217
1236
|
rendering, issue #290) */
|
|
1218
1237
|
case YEP_SC_PLAIN:
|
|
@@ -5386,6 +5386,29 @@ static size_t norm_next_fold_break(const char* p, size_t len, size_t i, size_t*
|
|
|
5386
5386
|
return 0;
|
|
5387
5387
|
}
|
|
5388
5388
|
|
|
5389
|
+
/* The block-fold reader's line crossing. The fold's lines end at ANY
|
|
5390
|
+
* break the engine normalizes (LF, lone CR, CRLF, NEL, LS/PS) — the
|
|
5391
|
+
* one-shot walk's law. The old '\n'-only scans swallowed the line
|
|
5392
|
+
* after a CR-terminated fold line whole, hiding its flow openers and
|
|
5393
|
+
* explicit-key '?' markers from the cut guard: the scan's in_flow
|
|
5394
|
+
* never rose, the next --- looked like a safe interior cut, and the
|
|
5395
|
+
* cut landed inside the engine's still-open flow, mid-token (the
|
|
5396
|
+
* r372 nightly, run 45234218847). Returns the loop's landing offset
|
|
5397
|
+
* (just past the break, the same byte a visited break arm would arm
|
|
5398
|
+
* from) with the line-start state carried, or SIZE_MAX when the
|
|
5399
|
+
* line's break has not arrived yet (the caller holds). */
|
|
5400
|
+
static size_t step_fold_line_cross(yep_stepstate* st, size_t k) {
|
|
5401
|
+
size_t br = 0;
|
|
5402
|
+
size_t e = norm_next_fold_break(st->buf, st->len, k, &br);
|
|
5403
|
+
if (br == 0) {
|
|
5404
|
+
return SIZE_MAX; /* the break rides in a later chunk */
|
|
5405
|
+
}
|
|
5406
|
+
st->tok_start = 1;
|
|
5407
|
+
st->word_led = 0;
|
|
5408
|
+
st->at_break = 1;
|
|
5409
|
+
return e + br - 1;
|
|
5410
|
+
}
|
|
5411
|
+
|
|
5389
5412
|
static int step_bs_header(const char* p, size_t len, size_t i) {
|
|
5390
5413
|
size_t k = i + 1;
|
|
5391
5414
|
int chomp = 0, indent = 0, space = 0;
|
|
@@ -5690,15 +5713,12 @@ static size_t step_scan(yep_stepstate* st) {
|
|
|
5690
5713
|
break;
|
|
5691
5714
|
}
|
|
5692
5715
|
if (p[k] == '\n' || p[k] == '#') {
|
|
5693
|
-
size_t
|
|
5694
|
-
|
|
5695
|
-
e++;
|
|
5696
|
-
}
|
|
5697
|
-
if (e >= st->len) {
|
|
5716
|
+
size_t land = step_fold_line_cross(st, k);
|
|
5717
|
+
if (land == SIZE_MAX) {
|
|
5698
5718
|
hold = i;
|
|
5699
5719
|
break;
|
|
5700
5720
|
}
|
|
5701
|
-
i =
|
|
5721
|
+
i = land; /* blank or comment content: the loop's i++ crosses the break */
|
|
5702
5722
|
continue;
|
|
5703
5723
|
}
|
|
5704
5724
|
int marker =
|
|
@@ -5711,15 +5731,12 @@ static size_t step_scan(yep_stepstate* st) {
|
|
|
5711
5731
|
if (!marker && st->bs_indent != (uint32_t)-1 && ind <= st->bs_indent) {
|
|
5712
5732
|
st->bs_open = 0; /* the fold ends here: normal processing resumes */
|
|
5713
5733
|
} else {
|
|
5714
|
-
size_t
|
|
5715
|
-
|
|
5716
|
-
e++;
|
|
5717
|
-
}
|
|
5718
|
-
if (e >= st->len) {
|
|
5734
|
+
size_t land = step_fold_line_cross(st, k);
|
|
5735
|
+
if (land == SIZE_MAX) {
|
|
5719
5736
|
hold = i;
|
|
5720
5737
|
break;
|
|
5721
5738
|
}
|
|
5722
|
-
i =
|
|
5739
|
+
i = land;
|
|
5723
5740
|
continue;
|
|
5724
5741
|
}
|
|
5725
5742
|
}
|