diff options
author | Kevin Chabowski <kevin@kch42.de> | 2013-10-25 21:43:37 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2013-10-25 21:43:37 +0200 |
commit | eebf5cb885f266104333ac145355ef6e2599e5f6 (patch) | |
tree | a86dae876afae2dcea9a3d70e3b513e305b38415 /stupid_template_engine.php | |
parent | 6dc747c097e096075b4726eb4aebf1ce0ed71276 (diff) | |
download | ste-parser2.tar.gz ste-parser2.tar.bz2 ste-parser2.zip |
New Testparser2
Diffstat (limited to 'stupid_template_engine.php')
-rw-r--r-- | stupid_template_engine.php | 2 |
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; } |