There is two scopes defined in python.tmLanguage:
-
punctuation.definition.list.begin.python
-
punctuation.definition.tuple.begin.python
In my test.tmTheme I try to coloring this scopes
<dict>
<key>name</key>
<string>Python test list</string>
<key>scope</key>
<string>punctuation.definition.list.begin.python</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#ff0000</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Python test tuple</string>
<key>scope</key>
<string>punctuation.definition.tuple.begin.python</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#ff0000</string>
</dict>
</dict>
Test with list works fine but test with tuple does not work (see picture).
Therefore it seams like there is some bug with python tuple syntax.
Sorry for my bad english