Skip to content

Commit 21d5820

Browse files
author
MattDMo
committed
added bytes syntax, etc.
1 parent 1b60088 commit 21d5820

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PythonImproved
22

3-
A better Python language definition for Sublime Text and TextMate. Inspired by:
3+
A better Python `.tmLanguage` syntax highlighting definition for [Sublime Text](http://www.sublimetext.com) and [TextMate](http://www.macromates.com). Inspired by:
44

55
- the original TextMate and Sublime Text `Python.tmLanguage` files
66
- facelessuser's [Better Python](https://github.com/facelessuser/sublime-languages)
@@ -10,7 +10,9 @@ as well as a number of my own changes to make things more consistent and underst
1010

1111
## Installation and Use
1212

13-
If you haven't already, [install Package Control](https://sublime.wbond.net/installation), then select `Python Improved` from the `Package Control: Install Package` option in the Command Palette. To use as your default Python syntax, open a `.py` file, then select `View -> Syntax -> Open all with current extension as... -> PythonImproved`.
13+
If you haven't already, [install Package Control](https://sublime.wbond.net/installation), then select `Python Improved` from the `Package Control: Install Package` option in the Command Palette. To use PythonImproved as your default Python syntax, open a `.py` file, then select `View -> Syntax -> Open all with current extension as... -> PythonImproved`.
14+
15+
While I haven't yet tried to install PythonImproved with TextMate, I can't think of a good reason as to why it wouldn't work. You could try putting it in the same directory as the standard `Python.tmbundle` package, in the `Syntaxes` subdirectory. Then, just pick `PythonImproved` from the syntax menu.
1416

1517
## New/Changed Scopes
1618

@@ -40,14 +42,17 @@ def myfunc(self, # gotta have self
4042

4143
![Multi-line comments and function annotations](http://pigimal.com/img/github/python_annotations.png)
4244

45+
- New scopes for bytes, unicode, and raw/regex strings, thanks to @simonzack: `string.quoted.(single|double).(block|single-line).(bytes|bytes-raw|bytes-raw-regex).python`
46+
- Also from @simonzack, highlighting of `self|cls` in parameter strings: `variable.parameter.function.(keyword|language)`
47+
4348
## Issues
4449

4550
If you have questions, concerns, or suggested improvements, I'd love to hear from you! Feel free to [open an issue](https://github.com/MattDMo/PythonImproved/issues/new) or send a [pull request](https://github.com/MattDMo/PythonImproved/compare/) and I'll get back to you as soon as I can. You can also email me at <[email protected]>.
4651

4752

4853
## License
4954

50-
&copy; 2013 Matt Morrison <[email protected]>.
55+
&copy; 2013-2014 Matt Morrison <[email protected]>.
5156

5257
This is free software. It is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>. Feel free to use this in your own work. However, if you modify and/or redistribute it, please attribute me in some way, and distribute your work under this or a similar license. A shout-out or a beer would be appreciated.
5358

0 commit comments

Comments
 (0)