aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mako/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 /lib/mako/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 'lib/mako/lexer.py')
-rw-r--r--lib/mako/lexer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mako/lexer.py b/lib/mako/lexer.py
index 1bf778f..0d4838d 100644
--- a/lib/mako/lexer.py
+++ b/lib/mako/lexer.py
@@ -284,7 +284,8 @@ class Lexer(object):
return False
def match_comment(self):
- match = self.match(r"#\*(.*)\*#", re.S)
+ """matches the multiline version of a comment"""
+ match = self.match(r"<%doc>(.*)</%doc>", re.S)
if match:
self.append_node(parsetree.Comment, match.group(1))
return True