Several people have expressed interest in a Python sugar, so I thought, in the interest of organization, we could keep it in a unified location (i.e. this thread). I’ve started working on a syntax file, code below. I only have syntax for comments in what I *think* is the correct syntax, but it’s a start. Let’s go, pythonistas.
<?xml version=“1.0”?>
<syntax name=“text.python.basic”>
<zones>
<zone name=“comment.line.python”>
<starts-with>
<expression>[^\\]#</expression>
<capture number"0” name=“punctuation.definition.begin”>
</starts-with>
<ends-with>
<expression>\n</expression>
<capture number"0” name=“punctuation.definition.end”>
</ends-with>
</zone>
<zone name=“comment.block.python”>
<starts-with>
<expression>(\”{3}|\’{3})</expression>
<capture number=“1” name=“punctuation.definition.begin”>
</starts-with>
<ends-with>
<expression>(\”{3}|\’{3})</expression>
<capture number=“1” name=“punctuation.definition.end”>
</ends-with>
</zone>
</zones>
<syntax>
