aboutsummaryrefslogtreecommitdiff
path: root/src/lexer.c
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-06-24 16:36:51 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2025-06-24 16:36:51 +0530
commit665cd823efa91f2c1d614531f199e8e990709575 (patch)
tree909acc8684973d11b23db7323dd748594629ad5e /src/lexer.c
parentdbf8b45bbd40dd28f934ad23b227576ff60335cf (diff)
(engine): split handling into separate functions
Diffstat (limited to 'src/lexer.c')
-rw-r--r--src/lexer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lexer.c b/src/lexer.c
index ea2a94e..2a80ddb 100644
--- a/src/lexer.c
+++ b/src/lexer.c
@@ -80,6 +80,9 @@ found_start:
} else if (strncmp(buffer + n, "endcontent", strlen("endcontent")) == 0) {
directive->type = ENDCONTENT;
directive->operands = NULL;
+ } else if (strncmp(buffer + n, "body", strlen("body")) == 0) {
+ directive->type = BODY;
+ directive->operands = NULL;
} else if (strncmp(buffer + n, "contentfor", strlen("contentfor")) == 0) {
directive->type = CONTENTFOR;
contentfor_operand_t *operands = malloc(sizeof(contentfor_operand_t));