aboutsummaryrefslogtreecommitdiffstats
path: root/src/template-parser.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2015-04-23 23:33:10 -0300
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2015-04-23 23:33:10 -0300
commit2dfa0fbac45122567988cb520e508f24897114fe (patch)
tree4f4381fadb71b63faf81b1911e1c68c4a30f792d /src/template-parser.c
parent7582a32c837c8b55613b547799d1a6405e926cba (diff)
downloadblogc-2dfa0fbac45122567988cb520e508f24897114fe.tar.gz
blogc-2dfa0fbac45122567988cb520e508f24897114fe.tar.bz2
blogc-2dfa0fbac45122567988cb520e508f24897114fe.zip
template parser: added more tests
Diffstat (limited to 'src/template-parser.c')
-rw-r--r--src/template-parser.c4
1 files changed, 2 insertions, 2 deletions
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;
}