aboutsummaryrefslogtreecommitdiffstats
path: root/src/template-parser.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2015-04-19 20:24:01 -0300
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2015-04-19 20:24:01 -0300
commit3b1b1aa6522c7d705ffdf36a7acc6e4db78a50a5 (patch)
treec08d13ff2d2af75ccbecef3077c647723eb7814e /src/template-parser.c
parenta50cdda0f68cee1f2adf8480b163911eb83298c2 (diff)
downloadblogc-3b1b1aa6522c7d705ffdf36a7acc6e4db78a50a5.tar.gz
blogc-3b1b1aa6522c7d705ffdf36a7acc6e4db78a50a5.tar.bz2
blogc-3b1b1aa6522c7d705ffdf36a7acc6e4db78a50a5.zip
template parser: ignore single brackets
Diffstat (limited to 'src/template-parser.c')
-rw-r--r--src/template-parser.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/template-parser.c b/src/template-parser.c
index 99e17d3..ce7dc32 100644
--- a/src/template-parser.c
+++ b/src/template-parser.c
@@ -97,9 +97,7 @@ blogc_template_parse(const char *src, size_t src_len, blogc_error_t **err)
}
break;
}
- *err = blogc_error_parser(BLOGC_ERROR_TEMPLATE_PARSER, src,
- src_len, current,
- "Invalid statement syntax. Must be '%%' or '{'.");
+ state = TEMPLATE_START;
break;
case TEMPLATE_BLOCK_START: