aboutsummaryrefslogtreecommitdiffstats
path: root/test/lexer.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2007-02-19 04:13:48 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2007-02-19 04:13:48 +0000
commitf300bf517ab90ef88ee86d87fd29597e7b96a85c (patch)
tree3d74bc1d407b9f09e8b6b66281c268e561325b5c /test/lexer.py
parent23dd29f0c9b4c27e82648cc02fe834052ef05f1c (diff)
downloadexternal_python_mako-f300bf517ab90ef88ee86d87fd29597e7b96a85c.tar.gz
external_python_mako-f300bf517ab90ef88ee86d87fd29597e7b96a85c.tar.bz2
external_python_mako-f300bf517ab90ef88ee86d87fd29597e7b96a85c.zip
multiline comment syntax now <%doc>
Diffstat (limited to 'test/lexer.py')
-rw-r--r--test/lexer.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lexer.py b/test/lexer.py
index e3c14a8..94e41f0 100644
--- a/test/lexer.py
+++ b/test/lexer.py
@@ -356,14 +356,14 @@ text text la la
this is ## not a comment
-#* multiline
+<%doc> multiline
comment
-*#
+</%doc>
hi
"""
nodes = Lexer(template).parse()
- assert repr(nodes) == r"""TemplateNode({}, [Text(u'\n<style>\n #someselector\n # other non comment stuff\n</style>\n', (1, 1)), Comment(u'a comment', (6, 1)), Text(u'\n# also not a comment\n\n', (7, 1)), Comment(u'this is a comment', (10, 1)), Text(u' \nthis is ## not a comment\n\n', (11, 1)), Comment(u' multiline\ncomment\n', (14, 1)), Text(u'\n\nhi\n', (16, 3))])"""
+ assert repr(nodes) == r"""TemplateNode({}, [Text(u'\n<style>\n #someselector\n # other non comment stuff\n</style>\n', (1, 1)), Comment(u'a comment', (6, 1)), Text(u'\n# also not a comment\n\n', (7, 1)), Comment(u'this is a comment', (10, 1)), Text(u' \nthis is ## not a comment\n\n', (11, 1)), Comment(u' multiline\ncomment\n', (14, 1)), Text(u'\n\nhi\n', (16, 8))])"""
if __name__ == '__main__':
unittest.main()