Skip to content

Commit 6823af7

Browse files
author
MattDMo
committed
Updates for 2.1.0
1 parent a580a8e commit 6823af7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

messages/2.1.0.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,24 @@
11
Python Improved v2.1.0
22
======================
33

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.
411

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.
522

623
To take full advantage of the extra scopes included in Python Improved, check out
724
the Neon Color Scheme at https://packagecontrol.io/packages/Neon%20Color%20Scheme

0 commit comments

Comments
 (0)