Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Python 3.6 f-string literal, underscore in numbers, and Python 3.5 type annotations #60

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
84f5cf9
narrow decorator match to exclude matrix multiplication
jhrmnn Jan 13, 2016
ddbd84e
More efficient regex
jhrmnn Jan 18, 2016
60a7b5c
Mark None as Python builtin object along with True and False
Feb 27, 2015
e07541a
Add support for Python 3.6 f-string literal and underscore in numbers.
achimnol Nov 25, 2016
eb44ea7
Fix pythonNumberError patterns to exclude legitimate identifiers.
achimnol Nov 25, 2016
8692c37
Merge "Add support for Python 3.6 f-string literal and underscore in …
lilydjwg Dec 9, 2016
9bd9cbc
Merge "Mark None as Python builtin object along with True and False"
lilydjwg Dec 9, 2016
af6a827
Merge "narrow decorator match to exclude matrix multiplication"
lilydjwg Dec 9, 2016
738e118
support for async keyword
lilydjwg Dec 9, 2016
67c13cf
Merge remote-tracking branch 'lilydjwg/master'
achimnol Jun 2, 2017
31f669d
Improve builtin-func highlighting
achimnol Jun 2, 2017
43f3542
Improve builtin-func and highlight type annotations in func args
achimnol Jun 2, 2017
f544d3c
Fully implement type annotation support
achimnol Jun 2, 2017
f5284a8
Add default italic style for type annotation
achimnol Jun 2, 2017
d47e205
Fix highlighting function return type annotation
achimnol Jun 2, 2017
0e3ba78
Fix lambda and list/slices broken after type annotation support
achimnol Jun 4, 2017
260521b
Fix bugs in f-string literals
achimnol Jun 4, 2017
e257b1d
Final retouch for README and options
achimnol Jun 5, 2017
daf7366
Add support for runtime-resolved type annotations in strings
achimnol Jun 5, 2017
4f194e7
Fix highlighting dotted names in type annotations.
achimnol Jun 9, 2017
559e3e2
Fix typo-bug in highlights of Python 3 builtin functions.
achimnol Jun 26, 2017
ac5499b
Fix highlighting of exec() as builtin function in Python 3
achimnol Jun 26, 2017
0935704
Add support for union operator ("|") in annotation
achimnol Jan 3, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ Features

Changes from the original ``python.vim`` are:

- Added support for Python 3 syntax highlighting
- Added support for Python 3.5/3.6+ syntax highlighting, including f-string
literals and type annotations.
- Added ``:Python2Syntax`` and ``:Python3Syntax`` commands which allow to
switch between Python 2 and Python 3 syntaxes respectively without
reloads/restarts
Expand Down Expand Up @@ -101,6 +102,8 @@ Options used by the script
Highlight builtin objects only
``python_highlight_builtin_funcs``
Highlight builtin functions only
``python_highlight_type_annotations``
Highlight Python 3.5+ type annotations
``python_highlight_exceptions``
Highlight standard exceptions
``python_highlight_string_formatting``
Expand Down
Loading