summaryrefslogtreecommitdiff
path: root/stupid_template_engine.php
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2013-10-25 21:43:37 +0200
committerKevin Chabowski <kevin@kch42.de>2013-10-25 21:43:37 +0200
commiteebf5cb885f266104333ac145355ef6e2599e5f6 (patch)
treea86dae876afae2dcea9a3d70e3b513e305b38415 /stupid_template_engine.php
parent6dc747c097e096075b4726eb4aebf1ce0ed71276 (diff)
downloadste-eebf5cb885f266104333ac145355ef6e2599e5f6.tar.gz
ste-eebf5cb885f266104333ac145355ef6e2599e5f6.tar.bz2
ste-eebf5cb885f266104333ac145355ef6e2599e5f6.zip
New Testparser2
Diffstat (limited to 'stupid_template_engine.php')
-rw-r--r--stupid_template_engine.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/stupid_template_engine.php b/stupid_template_engine.php
index cfb5882..dd90a89 100644
--- a/stupid_template_engine.php
+++ b/stupid_template_engine.php
@@ -196,7 +196,7 @@ class Parser {
$off = $this->off;
$name = $this->take_while(function($c) { return ctype_alnum($c) || ($c == "_"); });
if(mb_strlen($name) == 0) {
- throw new ParseCompileError("Expected a name (alphanumeric chars + '_', at least one char)");
+ throw new ParseCompileError("Expected a name (alphanumeric chars + '_', at least one char)", $this->name, $off);
}
return $name;
}