diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-02-12 02:10:10 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-02-12 02:10:10 -0500 |
| commit | 73b79e0f69c1300b74996b9e85b4503c89954a54 (patch) | |
| tree | 410bf259fac34558284bd32747cfa664a65ff3ca /parse.c | |
| parent | da1081387f2ae645fece8715481385973775941d (diff) | |
Syntax tweak: doctest with ">>" and "= "
Diffstat (limited to 'parse.c')
| -rw-r--r-- | parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1599,12 +1599,12 @@ PARSER(parse_extern) { PARSER(parse_doctest) { const char *start = pos; - if (!match(&pos, ">>>")) return NULL; + if (!match(&pos, ">>")) return NULL; spaces(&pos); ast_t *expr = expect(ctx, start, &pos, parse_statement, "I couldn't parse the expression for this doctest"); whitespace(&pos); const char* output = NULL; - if (match(&pos, "===")) { + if (match(&pos, "=")) { spaces(&pos); const char *output_start = pos, *output_end = strchrnul(pos, '\n'); |
