summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2024-02-18 13:06:40 +0100
committerLouis Burda <quent.burda@gmail.com>2024-02-18 13:28:14 +0100
commite643dcb01f30ea8c0b96c764c5e4030f970dc09f (patch)
tree01fda63892c9d221036995a9103107c3e22e4bde
parent190ebaffa70bdd72dc7f761c7380b3a9e84c76e4 (diff)
downloadtmpl-e643dcb01f30ea8c0b96c764c5e4030f970dc09f.tar.gz
tmpl-e643dcb01f30ea8c0b96c764c5e4030f970dc09f.zip
Add ability to escape directivesHEADmaster
-rw-r--r--tmpl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tmpl.c b/tmpl.c
index 3bcae1b..3ac5622 100644
--- a/tmpl.c
+++ b/tmpl.c
@@ -157,6 +157,8 @@ template(char *line)
*sep = '=';
assign(line + 9);
}
+ } else if (!strncmp(line, "\\#", 2)) {
+ puts(line+1); /* escaped */
} else if (!strncmp(line, "#-- ", 4)) {
return; /* comment */
} else {