MattDMo / PythonImproved

The best Python language definition for Sublime Text - ever. Includes full support for Unicode, as well as both Python 2 and Python 3 syntax. Check out the Neon Color Scheme for highlighting.
https://packagecontrol.io/packages/Python%20Improved
MIT License
93 stars 11 forks source link

Don't highlight invalid partial binary literals #33

Closed Dakta closed 9 years ago

Dakta commented 9 years ago

Previous implementation would highlight binary literal fragments without any actual binary values in them (e.g. 0b) which aren't valid. This patch fixes highlighting in an attempt to make invalid binary literal fragments easier to spot.

MattDMo commented 9 years ago

Thanks for the PR. Can you also edit PythonImproved.YAML-tmLanguage lines 43 and 46 with the same changes?

Dakta commented 9 years ago

Didn't even notice that. You use a YAML-to-PList tool?

MattDMo commented 9 years ago

Yup. Check out AAAPackageDev. YAML is cleaner, easier to organize, and much more legible than messing around with XML. I highly recommend it if you're doing any kind of package development.