File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 19
19
#include "parse.h"
20
20
#include "read.h"
21
21
#include "subparser.h"
22
+ #include "trace.h"
22
23
#include "types.h"
23
24
#include "yaml.h"
24
25
@@ -148,8 +149,16 @@ static void findYamlTags (void)
148
149
leaveSubparser ();
149
150
}
150
151
151
- verbose ("yaml token:%s<%d>@Line:%" PRIuPTR "\n " , tokenTypeName [token .type ], token .type ,
152
+ TRACE_PRINT ("yaml token:%s<%d>@Line:%" PRIuPTR "" , tokenTypeName [token .type ], token .type ,
152
153
token .start_mark .line + 1 );
154
+ if (isTraced () && token .type == YAML_SCALAR_TOKEN )
155
+ {
156
+ TRACE_PRINT_FMT (" " );
157
+ for (size_t i = 0 ; i < token .data .scalar .length ; i ++ )
158
+ TRACE_PRINT_FMT ("%c" , token .data .scalar .value [i ]);
159
+ TRACE_PRINT_NEWLINE ();
160
+ }
161
+
153
162
if (token .type == YAML_STREAM_END_TOKEN )
154
163
done = true;
155
164
You can’t perform that action at this time.
0 commit comments