aboutsummaryrefslogtreecommitdiffstats
path: root/src/template-parser.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-07-03 06:05:39 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-07-03 06:05:39 +0200
commitb431f79db6deb75229748f80a3e9e448b6dacf31 (patch)
treee7ffe0864ab6e0db213afcb0e2a260d27b663d69 /src/template-parser.c
parent3968529cad2baec099acff5fee47b5fe24624b03 (diff)
downloadblogc-b431f79db6deb75229748f80a3e9e448b6dacf31.tar.gz
blogc-b431f79db6deb75229748f80a3e9e448b6dacf31.tar.bz2
blogc-b431f79db6deb75229748f80a3e9e448b6dacf31.zip
Revert "error: improved parser error reporting"
this will not work properly for unicode chars This reverts commit 3968529cad2baec099acff5fee47b5fe24624b03.
Diffstat (limited to 'src/template-parser.c')
-rw-r--r--src/template-parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/template-parser.c b/src/template-parser.c
index 751fd9e..de6eb52 100644
--- a/src/template-parser.c
+++ b/src/template-parser.c
@@ -622,7 +622,7 @@ blogc_template_parse(const char *src, size_t src_len, blogc_error_t **err)
if (*err == NULL) {
if (state == TEMPLATE_BLOCK_IF_STRING_OPERAND)
*err = blogc_error_parser(BLOGC_ERROR_TEMPLATE_PARSER, src, src_len,
- start2, "Found an open double-quoted string.");
+ start2 - 1, "Found an open double-quoted string.");
else if (if_count != 0)
*err = blogc_error_new_printf(BLOGC_ERROR_TEMPLATE_PARSER,
"%d open 'ifdef' and/or 'ifndef' statements were not closed!",