|
1 | 1 | Python Improved v2.1.0
|
2 | 2 | ======================
|
3 | 3 |
|
| 4 | +Lots of bug fixes in this version, as expected after a new major release. I suppose |
| 5 | +one of the most user-facing changes is the reversion back to the old style of |
| 6 | +highlighting raw/regex string literals. `r"blah"` will still be scoped as |
| 7 | +before, with regex highlighting (if any is present). However, you now have the |
| 8 | +option of declining regex highlighting by using a capital R (`R"blah"`) instead. |
| 9 | +Python doesn't care if the R is in caps or not, it simply treats the string as a |
| 10 | +raw string literal. |
4 | 11 |
|
| 12 | +Other changes include fixing magic functions (again) so that function calls are |
| 13 | +properly scoped as `support.function.magic.call` while magic function definitions |
| 14 | +are `support.function.magic.name`. If you use Neon the highlighting is still |
| 15 | +identical, for now. I also fixed an edge case where using `cls` as a function call |
| 16 | +broke highlighting of the arguments (`self` can now be used as well, obviously |
| 17 | +assuming `__call__` has been implemented in your class). I also got rid of some |
| 18 | +unnecessary(?) code that wasn't, as far as I could tell, actually doing anything. |
| 19 | +If something breaks, please tell me. I've also added `tests/test_code.py` which is |
| 20 | +just a bunch of random snippets for testing. Finally, I've made some changes to the |
| 21 | +README, mostly updating (or adding) URLS, as well as detailing all of the above. |
5 | 22 |
|
6 | 23 | To take full advantage of the extra scopes included in Python Improved, check out
|
7 | 24 | the Neon Color Scheme at https://packagecontrol.io/packages/Neon%20Color%20Scheme
|
|
0 commit comments