From 2dfa0fbac45122567988cb520e508f24897114fe Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Thu, 23 Apr 2015 23:33:10 -0300 Subject: template parser: added more tests --- src/template-parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/template-parser.c') diff --git a/src/template-parser.c b/src/template-parser.c index 0fcf898..69402cf 100644 --- a/src/template-parser.c +++ b/src/template-parser.c @@ -227,7 +227,7 @@ blogc_template_parse(const char *src, size_t src_len, blogc_error_t **err) case TEMPLATE_BLOCK_IF_START: if (c == ' ') break; - if (c >= 'a' && c <= 'z') { + if (c == 'n') { if (!conditional) { conditional = true; state = TEMPLATE_BLOCK_IF_CONDITION; @@ -301,7 +301,7 @@ blogc_template_parse(const char *src, size_t src_len, blogc_error_t **err) } *err = blogc_error_parser(BLOGC_ERROR_TEMPLATE_PARSER, src, src_len, current, - "variable statements only allowed inside 'entry' and " + "Variable statements only allowed inside 'entry' and " "'listing' blocks."); break; } -- cgit v1.2.3-18-g5258