I am trying to match a multiline/block comment that looks like this
<# This is a multiline comment
This is a multiline comment
This is a multiline comment
This is a multiline comment
This is a multiline comment
#>
The "<# #>" determining the beginning and end of a block comment. I am using PySide in my application and the QRegExp function like so:
multiline_comment = r'<#(.*)?#>'
comment_ml_syntax = QtCore.QRegExp(Syntax.comment_ml_match)
comment_ml_format = QtGui.QTextCharFormat()
comment_ml_format.setForeground(Colors.COMMENT_COLOR)
QRegExp doesn't seem to match the multi-line comment. Is there some kind of option or flag that I am missing?