aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-07-27 16:11:32 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2025-07-27 16:11:32 +0530
commita363a4995f834e08b7f5f35a7db76d37bf67b935 (patch)
treea4b682a046c508db9c24fd57eabb0e531b8f8067
parent46b993076d86d3e600dc1ba49f6f00d7fc148da3 (diff)
lexer: handle endfor
-rw-r--r--src/lexer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lexer.c b/src/lexer.c
index 0adfb77..4a4c195 100644
--- a/src/lexer.c
+++ b/src/lexer.c
@@ -221,6 +221,9 @@ found_start:
} else if (DIRECTIVE_IS("endcontent")) {
directive->type = ENDCONTENT;
directive->operands = NULL;
+ } else if (DIRECTIVE_IS("endfor")) {
+ directive->type = ENDFOR;
+ directive->operands = NULL;
} else if (DIRECTIVE_IS("body")) {
directive->type = BODY;
directive->operands = NULL;