Steven Sojka
cab8717959
chore(highlights): remove is predicate usage
2020-08-17 19:27:35 +02:00
Santos Gallegos
cf37d143bf
Python: update highlights
...
- Get rid of @self
- Highlight methods correctly
- Highlight self as the first parameter of a method
- Use new syntax (# for predicates, (_) instead of (*) for wildcards)
2020-08-16 22:00:11 +02:00
Santos Gallegos
ed3469b59f
Python: update locals
2020-08-16 21:49:14 +02:00
Steven Sojka
ce43dbf54c
fix(queries): use vim-match for non lua regexes
2020-08-16 18:31:56 +02:00
Steven Sojka
579c9936d6
feat(highlights): add is predicate
2020-08-16 09:04:07 -05:00
Stephan Seitz
187dc8e3f5
Python highlights: Highlight ->, ...
2020-08-14 13:53:00 +02:00
Santos Gallegos
124ff3bf56
Python: update textobjects queries
2020-08-04 10:09:11 +02:00
Stephan Seitz
5d696053e5
Fix #198 : prefer method highlighting over attribute
2020-07-22 17:30:48 +02:00
Stephan Seitz
b893592398
Python highlights: add lambda parameters
2020-07-22 17:30:48 +02:00
Stephan Seitz
969edeeced
Python highlights: highlight functions with self as methods ( #198 )
...
Also highlight __init__/__new__ as constructor
2020-07-20 08:57:12 +02:00
Stephan Seitz
a382e28c95
Python textobjects: Include @decorators and improve @conditional.inner
2020-07-15 23:16:13 +02:00
Stephan Seitz
d685d82682
Add Python textobjects
2020-07-14 22:34:43 +02:00
Stephan Seitz
69cabc69be
Add textobjects module
2020-07-14 22:34:43 +02:00
Stephan Seitz
a5fb463309
Python locals: with_statement can define variables
2020-07-09 14:38:08 +02:00
Stephan Seitz
c361d65113
Python highlights: Surround type subscript query with (type ...)
2020-07-09 10:00:41 +02:00
Stephan Seitz
b6df2329bd
Introduce @definition.import for Python/Javascript
2020-07-08 18:00:35 +02:00
Stephan Seitz
0e80b89935
Highlight complete type definition
2020-07-08 17:47:44 +02:00
Stephan Seitz
dc324e44ad
Python locals/highlights: Parameters can be optionally typed
2020-07-08 17:47:44 +02:00
kiyan42
180ad9a1a8
add python async
2020-06-30 08:15:51 +02:00
Stephan Seitz
75bce1dc93
Python highlights: Reset highlighting in f-string interpolation
...
This solution is preferable to `(identifier) @Normal` since otherwise
everything without highlight will use string-highlighting.
2020-06-26 13:52:59 +02:00
Stephan Seitz
88c8b70560
Python highlights: Add walrus operator
2020-06-26 13:52:59 +02:00
Stephan Seitz
dfead6caca
Adapt Python highlights to new query syntax
2020-06-24 10:07:22 +02:00
Stephan Seitz
a85cf1a47c
Add highlighting of dunder identifiers (e.g. __all__, __add__) to Python highlights
2020-06-21 17:00:17 +02:00
Jakub Łuczyński
0b4d4b4140
Updated python highlights
...
* allow for digits in constant names
* removed redundant/conflicting rules
* added missing hlmap
* fixed escape_sequence
* more explicit @constructor assignment
* added rules for function decoration identifiers
2020-06-21 00:11:58 +02:00
Stephan Seitz
92417aa4ea
Update python locals: list_splat and dictionary_splat define variables as parameters
2020-06-02 21:13:09 +02:00
Stephan Seitz
807d6e11fa
Improve Python highlights
...
- Highlight types in attributes as @type (**Foo**.a)
- Highlight superclasses @type
- Highlight ^[A-Z] as @type
- Highlight isinstance(*, type) as @type
- Highlight default_parameter and keyword_argument as @parameter
- Highlight *args, **kwargs as @parameter
- Highlight -> as @operator
2020-05-28 10:42:45 +02:00
Stephan Seitz
f6bf56974e
Introduce @include
2020-05-17 21:56:44 +02:00
Stephan Seitz
57424533a7
Add python/highlights.scm from tree-sitter-python
2020-05-17 21:56:44 +02:00
Stephan Seitz
a5c50262d9
Add python locals.scm
2020-05-16 19:32:02 +02:00