Ticket #3888: multiline_comments.diff
File multiline_comments.diff, 771 bytes (added by , 18 years ago) |
---|
-
__init__.py
88 88 UNKNOWN_SOURCE="<unknown source>" 89 89 90 90 # match a variable or block tag and capture the entire tag, including start/end delimiters 91 tag_re = re.compile('(%s.*?%s|%s.*?%s|%s .*?%s)' % (re.escape(BLOCK_TAG_START), re.escape(BLOCK_TAG_END),91 tag_re = re.compile('(%s.*?%s|%s.*?%s|%s[\s\S]*?%s)' % (re.escape(BLOCK_TAG_START), re.escape(BLOCK_TAG_END), 92 92 re.escape(VARIABLE_TAG_START), re.escape(VARIABLE_TAG_END), 93 93 re.escape(COMMENT_TAG_START), re.escape(COMMENT_TAG_END))) 94 94 # matches if the string is valid number