on master help sign in
More docs on exactly what is happening with the variables
7d00f9cNeil Mitchell
gen/test.c+4−1
@@ -270,9 +270,12 @@ static inline str gap(const char* ref, const char* start, const char* end)
270 d->nodes.nodes[d->nodes.used_front].outer = gap(d->body, tag_start, p); \
270 d->nodes.nodes[d->nodes.used_front].outer = gap(d->body, tag_start, p); \
271 printf("TagOpenClose %s\n", p)
271 printf("TagOpenClose %s\n", p)
272
272
273+// Given the parsed string, return either NULL (success) or an error message (failure)
273static const char* parser(const char* p, document* d)
274static const char* parser(const char* p, document* d)
274{
275{
275− const char *tag_start, *name_start, *name_end, *quote_start, *quote_end;
276+ const char *tag_start; // Where the entire tag starts [<foo
277+ const char *name_start, *name_end; // Where a name is <[foo] or <foo [bar]=
278+ const char *quote_start, *quote_end; // Where an attribute quote is <foo bar='[123]'>
276# include "test.h"
279# include "test.h"
277 return NULL;
280 return NULL;
278}
281}