Ticket #3888: multiline_comments.diff

File multiline_comments.diff, 771 bytes (added by tonnzor <tonn81@…>, 8 years ago)

Multiline comments

  • __init__.py

     
    8888UNKNOWN_SOURCE="&lt;unknown source&gt;"
    8989
    9090# 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),
     91tag_re = re.compile('(%s.*?%s|%s.*?%s|%s[\s\S]*?%s)' % (re.escape(BLOCK_TAG_START), re.escape(BLOCK_TAG_END),
    9292                                          re.escape(VARIABLE_TAG_START), re.escape(VARIABLE_TAG_END),
    9393                                          re.escape(COMMENT_TAG_START), re.escape(COMMENT_TAG_END)))
    9494# matches if the string is valid number
Back to Top