[ezt] r36 committed - Tweak the error reporting bit, as we have line numbers now. Incorporat...

4 views
Skip to first unread message

e...@googlecode.com

unread,
Jan 18, 2013, 2:35:33 PM1/18/13
to ezt-d...@googlegroups.com
Revision: 36
Author: gst...@gmail.com
Date: Fri Jan 18 11:22:56 2013
Log: Tweak the error reporting bit, as we have line numbers now.
Incorporate jacobly's comment about the open bracket directive.
http://code.google.com/p/ezt/source/detail?r=36

Modified:
/wiki/Syntax.wiki

=======================================
--- /wiki/Syntax.wiki Mon Feb 16 04:12:26 2009
+++ /wiki/Syntax.wiki Fri Jan 18 11:22:56 2013
@@ -62,7 +62,7 @@
}}}

Template syntax error reporting should be improved. Currently it is
-very sparse (template line numbers would be nice):
+very sparse:

{{{
>>> Template().parse("[if-any where] foo [else] bar [end unexpected args]")
@@ -80,7 +80,7 @@
self.program = self._parse(text)
File "ezt.py", line 266, in _parse
raise UnmatchedEndError()
-UnmatchedEndError
+UnmatchedEndError: in file (text) at line 1
}}}

==Directives==
@@ -140,6 +140,10 @@
in the case of the "include" directive, using a string constant for
the filename is more efficient than the variable form.

+`[[]`
+
+ Inserts a literal open bracket into the output. No escaping is
necessary for a close bracket.
+
===Block directives===

`[for QUAL_NAME] ... [end]`
Reply all
Reply to author
Forward
0 new messages