Joongi Kim
e257b1d89e
Final retouch for README and options
před 7 roky
Joongi Kim
260521b938
Fix bugs in f-string literals
před 7 roky
Joongi Kim
0e3ba78aad
Fix lambda and list/slices broken after type annotation support
před 7 roky
Joongi Kim
d47e205ccd
Fix highlighting function return type annotation
před 7 roky
Joongi Kim
f5284a836c
Add default italic style for type annotation
* It is recommended to override it in colorschemes.
před 7 roky
Joongi Kim
f544d3c90b
Fully implement type annotation support
před 7 roky
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.
před 7 roky
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
před 7 roky
lilydjwg
738e118831
support for async keyword
před 7 roky
Joongi Kim
eb44ea7304
Fix pythonNumberError patterns to exclude legitimate identifiers.
* "_0" is a valid identifier!
před 7 roky
Joongi Kim
e07541aa59
Add support for Python 3.6 f-string literal and underscore in numbers.
před 7 roky
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
před 9 roky
Jan Hermann
ddbd84e7b8
More efficient regex
před 8 roky
Jan Hermann
84f5cf9ce6
narrow decorator match to exclude matrix multiplication
před 8 roky
Dmitry Vasiliev
69760cb3ac
Update version and last change date
před 8 roky
Dmitry Vasiliev
ad932f5242
Update CHANGES/README
před 8 roky
Dmitry Vasiliev
2ed516d569
Update CHANGES/README
před 8 roky
Joongi Kim
e4d992dc44
Correct highlighting async function names in Python 3.5
před 8 roky
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.)
před 8 roky
Dmitry Vasiliev
10d2c07687
Update CHANGES.txt
před 9 roky
Ihor Gorobets
4d925a99dd
Python 3.5 new syntax sugar
https://www.python.org/dev/peps/pep-0492/
před 9 roky
Dmitry Vasiliev
44f1855902
Update python.vim header
před 9 roky
Dmitry Vasiliev
716ded1d56
Add GitHub links for most of the contributors
před 9 roky
Dmitry Vasiliev
878e75cf90
Highlight non-ASCII decorators only for Python 3
před 9 roky
Victor Salgado
9dc6765ad1
Fix decorators to allow the same kind of characters that functions do
před 9 roky
Dmitry Vasiliev
453269d0f8
Highlight 'yield from' statement
The 'yield from' statement was introduced in Python 3.3. Reported by
Elizabeth Myers.
před 10 roky
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.
před 10 roky
Dmitry Vasiliev
21a2e84df6
Update CHANGES.txt
před 10 roky
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.
před 10 roky
Dmitry Vasiliev
6f6f10ff54
Clean up boolean highlighting
před 10 roky
Yuri Habrusiev
a0d21acc1c
add pythonBoolean syntax
před 10 roky
Dmitry Vasiliev
ebbdd093b7
Revision 3.3.3
před 11 roky
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.
před 11 roky
Dmitry Vasiliev
e344f212b6
Fix behaviour of b:python_version_2 variable
před 11 roky
Dmitry Vasiliev
2860070a9d
Update script version
před 11 roky
Dmitry Vasiliev
16f0987559
Move python.vim into syntax directory
před 11 roky
Dmitry Vasilev
325c3a50ce
Merge python.vim and python3.0.vim into python.vim
Merge Python 3 and Python 3 script versions into
the single python.vim script
před 11 roky
Dmitry Vasiliev
ee72907cf8
Updated email and URL for all scripts
před 12 roky
Dmitry Vasiliev
32c7868195
Added options python_highlight_builtin_objs and python_highlight_builtin_funcs
před 14 roky
Dmitry Vasiliev
4fc6d28416
Fixed highlighting for decorators
před 15 roky
Dmitry Vasiliev
4f9e8d7c0f
Fixed compatibility with pyrex.vim
před 15 roky
Dmitry Vasiliev
c55d8f9abf
Updated version
před 15 roky
Dmitry Vasiliev
b521645066
Trailing 'L' removal was in wrong file
před 15 roky
Dmitry Vasiliev
f7f1409e29
Removed trailing 'L' support for numbers
před 15 roky
Dmitry Vasiliev
a2208995a6
Added support for brace escaping in str.format
před 15 roky
Dmitry Vasiliev
4954174d85
Added support for b'...' syntax
před 15 roky
Dmitry Vasiliev
1b26c2a1ff
Added headers
před 15 roky
Dmitry Vasiliev
5cfa952032
Fixed hex error display
před 15 roky
Dmitry Vasiliev
b6d761f8cd
Fixed highlighting for -- and ++
před 15 roky
Dmitry Vasiliev
6f75c9ab82
Fixed hex error display
před 15 roky