aboutsummaryrefslogtreecommitdiff
path: root/src/lexer.c
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-07-29 08:33:49 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2025-07-29 08:33:49 +0530
commit1116df37a0e8919c1ba9bbf66aeda249367f0748 (patch)
tree9730ab9b163426a2f5a8d694b32fd5a365172fa7 /src/lexer.c
parentac975c3ed46e7796a705f67279b6bee4b94edd96 (diff)
lexer: add length to eachdo_operands_t
Diffstat (limited to 'src/lexer.c')
-rw-r--r--src/lexer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lexer.c b/src/lexer.c
index b96e3a5..b9d6f64 100644
--- a/src/lexer.c
+++ b/src/lexer.c
@@ -222,6 +222,8 @@ lexer_handle_eachdo(directive_t *directive,
}
operands->content = strndup(buffer, new_match->offset);
+ operands->length
+ = match->offset + match->length + new_match->offset + new_match->length;
free(new_match);
directive->operands = operands;