marijnh/CodeMirror — pull request #1738 by mtaran (2013-08-11 22:26:32+00:00)
Title: Python function/class definition highlighting.

The same way it works in ruby mode :)

You can see it in action in the index.html demo.