aboutsummaryrefslogtreecommitdiff
path: root/src/lexer.c
diff options
context:
space:
mode:
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));