I would like a regex that finds complete and *disjoint *typescript 
multiline block comments

The following does not work, because the flags do not play well together.

re.compile(r'(/\*.*?\*/)(.*)', re.DOTALL | re.MULTILINE)

For example, even with .*?, the pattern will match the *entire* string:

/* first comment */
body
/* second comment */

The relevant code is in the bug-1617 branch. It's not pretty.

I don't know of any elegant solution. Do you?

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/9a9b142a-3986-4751-b263-cd6490238777o%40googlegroups.com.

Reply via email to