commit 940493f184fe45034142919d525c25cf9e515874 parent 110975105e860a4530f9d5b1595d063b8356ccd6 Author: Louis Burda <quent.burda@gmail.com> Date: Mon, 29 May 2023 13:05:51 +0200 Add support for #-- style comments Diffstat:
M | tmpl.c | | | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/tmpl.c b/tmpl.c @@ -120,6 +120,8 @@ template(char *line) *sep = '='; assign(line + 9); } + } else if (!strncmp(line, "#-- ", 4)) { + return; /* comment */ } else { if (stack_top && !stack[stack_top-1].active) return;