danielmcgrath / sublime-pyflakes

Sublime Text 2 Pyflakes package
13 stars 5 forks source link

Add custom scope to warning region #2

Closed pkkid closed 12 years ago

pkkid commented 12 years ago

This allows us to define a custom color for the warning messages in our syntax theme with something like the following:

<dict>
    <key>name</key><string>PyFlakes Warning</string>
    <key>scope</key><string>pyflakeswarning</string>
    <key>settings</key><dict>
        <key>foreground</key><string>#330</string>
    </dict>
</dict>

If this is not defined, it will degrade back to the string color as it worked originally.

danielmcgrath commented 12 years ago

Thanks!