on master help sign in
More docs on exactly what is happening with the variables
commit7d00f9c0ec3ab6baa169d13fa8c7f9b0abf24c91 authorNeil Mitchell <ndmitchell@gmail.com> dateWed 3 Jan 2018, 23:04 (9 years ago) parentdd0ea1e
1 file changed+4−1
gen/test.c+4−1
gen/test.c+4−1
@@ -270,9 +270,12 @@ static inline str gap(const char* ref, const char* start, const char* end)
270270 d->nodes.nodes[d->nodes.used_front].outer = gap(d->body, tag_start, p); \
271271 printf("TagOpenClose %s\n", p)
272272
273+// Given the parsed string, return either NULL (success) or an error message (failure)
273274static const char* parser(const char* p, document* d)
274275{
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]'>
276279# include "test.h"
277280 return NULL;
278281}