aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2015-05-28 01:35:32 -0300
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2015-05-28 01:35:32 -0300
commit0c67cae6e45b77b29c8450c721491b32c56258fa (patch)
treec85a9e6b300f245ca498abf9644e35b85edf1bec /src
parentb65ed83643c8964dc80ddf0e44a08cdea8eaba49 (diff)
downloadblogc-0c67cae6e45b77b29c8450c721491b32c56258fa.tar.gz
blogc-0c67cae6e45b77b29c8450c721491b32c56258fa.tar.bz2
blogc-0c67cae6e45b77b29c8450c721491b32c56258fa.zip
source-parser: fixed reserved variables
Diffstat (limited to 'src')
-rw-r--r--src/source-parser.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/source-parser.c b/src/source-parser.c
index d7dddc7..f0fca29 100644
--- a/src/source-parser.c
+++ b/src/source-parser.c
@@ -81,7 +81,17 @@ blogc_source_parse(const char *src, size_t src_len, blogc_error_t **err)
((current - start == 20) &&
(0 == strncmp("DATE_FIRST_FORMATTED", src + start, 20))) ||
((current - start == 19) &&
- (0 == strncmp("DATE_LAST_FORMATTED", src + start, 19))))
+ (0 == strncmp("DATE_LAST_FORMATTED", src + start, 19))) ||
+ ((current - start == 10) &&
+ (0 == strncmp("PAGE_FIRST", src + start, 10))) ||
+ ((current - start == 13) &&
+ (0 == strncmp("PAGE_PREVIOUS", src + start, 13))) ||
+ ((current - start == 12) &&
+ (0 == strncmp("PAGE_CURRENT", src + start, 12))) ||
+ ((current - start == 9) &&
+ (0 == strncmp("PAGE_NEXT", src + start, 9))) ||
+ ((current - start == 9) &&
+ (0 == strncmp("PAGE_LAST", src + start, 9))))
{
*err = blogc_error_new_printf(BLOGC_ERROR_SOURCE_PARSER,
"'%s' variable is forbidden in source files. It will "