Joongi Kim
7a48474fcc
Merge 09357048aced6245f7bd41431b59d761d855d2d0 into 69760cb3accce488cc072772ca918ac2cbf384ba
преди 6 години
Joongi Kim
09357048ac
Add support for union operator ("|") in annotation
* An example to use this style: tarfaret library
преди 6 години
Joongi Kim
ac5499b832
Fix highlighting of exec() as builtin function in Python 3
преди 7 години
Joongi Kim
559e3e2a3f
Fix typo-bug in highlights of Python 3 builtin functions.
преди 7 години
Joongi Kim
4f194e7731
Fix highlighting dotted names in type annotations.
преди 7 години
Joongi Kim
daf7366c8d
Add support for runtime-resolved type annotations in strings
преди 7 години
Joongi Kim
e257b1d89e
Final retouch for README and options
преди 7 години
Joongi Kim
260521b938
Fix bugs in f-string literals
преди 7 години
Joongi Kim
0e3ba78aad
Fix lambda and list/slices broken after type annotation support
преди 7 години
Joongi Kim
d47e205ccd
Fix highlighting function return type annotation
преди 7 години
Joongi Kim
f5284a836c
Add default italic style for type annotation
* It is recommended to override it in colorschemes.
преди 7 години
Joongi Kim
f544d3c90b
Fully implement type annotation support
преди 7 години
Joongi Kim
43f3542282
Improve builtin-func and highlight type annotations in func args
* Builtin-functions are highlighted only when used as global functions.
* Annotations in type-only variable definitions and assignment statements are not supported yet due to potential conflicts with dictionary expressions.
* Uses a custom syntax highlight def "Optional" (in my setup, it applies italic style.)
* Taken from purpleP/python-syntax commits and customized.
преди 7 години
Joongi Kim
31f669d00d
Improve builtin-func highlighting
* Make them highlighted only when used as in the global namespace. (e.g., `id` in `something.id` is not highlighted)
* Also add self and cls to builtin objects
преди 7 години
Joongi Kim
67c13cffa5
Merge remote-tracking branch 'lilydjwg/master'
преди 7 години
lilydjwg
738e118831
support for async keyword
преди 8 години
lilydjwg
af6a8275a5
Merge "narrow decorator match to exclude matrix multiplication"
https://github.com/hdima/python-syntax/pull/47
преди 8 години
lilydjwg
9bd9cbca8b
Merge "Mark None as Python builtin object along with True and False"
https://github.com/hdima/python-syntax/pull/53
преди 8 години
lilydjwg
8692c37f91
Merge "Add support for Python 3.6 f-string literal and underscore in numbers."
https://github.com/hdima/python-syntax/pull/60
преди 8 години
Joongi Kim
eb44ea7304
Fix pythonNumberError patterns to exclude legitimate identifiers.
* "_0" is a valid identifier!
преди 8 години
Joongi Kim
e07541aa59
Add support for Python 3.6 f-string literal and underscore in numbers.
преди 8 години
Alois Mahdal
60a7b5c3d2
Mark None as Python builtin object along with True and False
More specifically, they are "built-in constants":
https://docs.python.org/2/library/constants.html#built-in-consts
преди 9 години
Jan Hermann
ddbd84e7b8
More efficient regex
преди 8 години
Jan Hermann
84f5cf9ce6
narrow decorator match to exclude matrix multiplication
преди 8 години
Dmitry Vasiliev
69760cb3ac
Update version and last change date
преди 9 години
Dmitry Vasiliev
d02a048f73
Merge branch 'dummy_python_include_group'
преди 9 години
Dmitry Vasiliev
ad932f5242
Update CHANGES/README
преди 9 години
Dmitry Vasiliev
652e3687eb
Merge branch 'python-include-for-pyrex-vim'
преди 9 години
Dmitry Vasiliev
299d33b745
Merge branch 'async_def_fix'
преди 9 години
Dmitry Vasiliev
2ed516d569
Update CHANGES/README
преди 9 години
Joongi Kim
e4d992dc44
Correct highlighting async function names in Python 3.5
преди 9 години
Antony Lee
67b6d85258
Dummy pythonInclude group to keep pyrex.vim happy.
(I don't know how to create an empty group so I just put back "import" into
it.)
преди 9 години
Dmitry Vasiliev
10d2c07687
Update CHANGES.txt
преди 9 години
Dmitry Vasiliev
d948f835b4
Update TODO item
преди 9 години
Ihor Gorobets
4d925a99dd
Python 3.5 new syntax sugar
https://www.python.org/dev/peps/pep-0492/
преди 9 години
Dmitry Vasiliev
44f1855902
Update python.vim header
преди 9 години
Dmitry Vasiliev
716ded1d56
Add GitHub links for most of the contributors
преди 10 години
Dmitry Vasiliev
878e75cf90
Highlight non-ASCII decorators only for Python 3
преди 10 години
Dmitry Vasiliev
9209dd0c02
Merge https://github.com/mcsalgado/python-syntax
преди 10 години
Dmitry Vasiliev
ea215a9085
Add the MIT license
преди 10 години
Victor Salgado
9dc6765ad1
Fix decorators to allow the same kind of characters that functions do
преди 10 години
Dmitry Vasiliev
453269d0f8
Highlight 'yield from' statement
The 'yield from' statement was introduced in Python 3.3. Reported by
Elizabeth Myers.
преди 11 години
Dmitry Vasiliev
efe8499cfb
Add TODO item
преди 11 години
Dmitry Vasiliev
69f8e12a46
Add new option 'python_highlight_file_headers_as_comments'
The option is disabled by default and when enabled highlight shebang and
coding file headers as comments instead of special characters.
преди 11 години
Dmitry Vasiliev
21a2e84df6
Update CHANGES.txt
преди 11 години
pydave
9ccbd6196b
Make imports look like includes
Imports work like includes so they should use the relevant group-name.
I also renamed pythonPreCondit to pythonImport since it's specific to
that type of "preprocessor" statement.
преди 11 години
Dmitry Vasiliev
6f6f10ff54
Clean up boolean highlighting
преди 11 години
Yuri Habrusiev
a0d21acc1c
add pythonBoolean syntax
преди 11 години
Dmitry Vasiliev
ebbdd093b7
Revision 3.3.3
преди 11 години
Will Gray
fc6a66bf80
Reload local syntax only
Turning syntax off and back on is more than what's necessary to reload the syntax for the current buffer.
преди 11 години