Skip to content

Commit 9065613

Browse files
committed
wip
1 parent 2680de0 commit 9065613

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

src_extra/c4/yml/extra/event_handler_ints.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,13 +1045,14 @@ struct EventHandlerInts : public c4::yml::EventHandlerStack<EventHandlerInts, Ev
10451045
}
10461046
void set_val_tag(csubstr tag)
10471047
{
1048-
_c4dbgpf("{}/{}: set val tag ~~~{}~~~", m_evt_pos, m_evt_size, tag);
1048+
_c4dbgpf("{}/{}: set val tag [{}]~~~{}~~~", m_evt_pos, m_evt_size, tag.len, tag);
10491049
_enable_(c4::yml::VALTAG);
10501050
_set_tag(tag, ievt::VAL_);
10511051
}
10521052
void _set_tag(csubstr tag, ievt::DataType which)
10531053
{
10541054
csubstr ttag = _transform_directive(tag);
1055+
_c4dbgpf("{}/{}: transformed_tag [{}]~~~{}~~~", m_evt_pos, m_evt_size, ttag.len, ttag);
10551056
_RYML_CB_ASSERT(m_stack.m_callbacks, !ttag.empty());
10561057
if(m_evt_pos + 3 < m_evt_size)
10571058
{

test/test_extra_ints.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ const IntEventsCase test_cases[] = {
6868
{
6969
e(BSTR),
7070
e(BDOC),
71-
e(VAL_|TAG_, 1, 18, "yamlscript/v0/bare"),
71+
e(VAL_|TAG_, 0, 19, "!yamlscript/v0/bare"),
7272
e(VAL_|SCLR|PLAI|PSTR, 0, 0, ""),
7373
e(EDOC|PSTR),
7474
e(BDOC|EXPL),
75-
e(VAL_|TAG_, 25, 4, "code"),
75+
e(VAL_|TAG_, 24, 5, "!code"),
7676
e(VAL_|SCLR|PLAI|PSTR, 30, 2, "42"),
7777
e(EDOC|PSTR),
7878
e(ESTR),
@@ -161,10 +161,10 @@ const IntEventsCase test_cases[] = {
161161
{
162162
e(BSTR),
163163
e(BDOC|EXPL),
164-
e(VAL_|TAG_, 5, 13, "yamlscript/v0"),
164+
e(VAL_|TAG_, 4, 14, "!yamlscript/v0"),
165165
e(VAL_|BMAP|BLCK|PSTR),
166166
e(KEY_|SCLR|PLAI, 19, 3, "foo"),
167-
e(VAL_|TAG_|PSTR, 25, 0, ""),
167+
e(VAL_|TAG_|PSTR, 24, 1, "!"),
168168
e(VAL_|BSEQ|BLCK|PSTR),
169169
e(VAL_|BMAP|FLOW),
170170
e(KEY_|SCLR|PLAI, 29, 1, "x"),
@@ -186,7 +186,7 @@ const IntEventsCase test_cases[] = {
186186
e(VAL_|SCLR|PLAI|PSTR, 101, 5, "false"),
187187
e(VAL_|SCLR|PLAI|PSTR, 108, 4, "null"),
188188
e(ESEQ|PSTR),
189-
e(VAL_|TAG_, 127, 5, "tag-1"),
189+
e(VAL_|TAG_, 126, 6, "!tag-1"),
190190
e(VAL_|ANCH|PSTR, 117, 8, "anchor-1"),
191191
e(VAL_|SCLR|PLAI|PSTR, 133, 6, "foobar"),
192192
e(ESEQ|PSTR),

0 commit comments

Comments
 (0)