- Code: Select all
reo = re.compile(r'(?msu)(^|.)(\[(?P<attrlist>[^[\]]+?)\])?' \
+ r'(?:' + re.escape(lq) + r')' \
print "this is some code with wrong syntax highlighting"
print "the problems continue until the end of the document"
You can see that it thinks the regexp never ends and highlights the rest of the document as part of the regexp.
This code is a snippet from asciidoc.py. The problem screws up the highlighting in 70% of the file.
Please fix the syntax highlighting. I'm on Sublime Text 2 build 2165 on OS X Snow Leopard. TextMate has the same problem, so I'm guessing you're just reusing the TextMate syntax file.