aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python
Commit message (Collapse)AuthorAgeFilesLines
* Python: update foldsSantos Gallegos2020-09-031-0/+1
| | | | Missed one
* Python: add foldsSantos Gallegos2020-09-031-0/+24
|
* Python highlights: add additional operatorsStephan Seitz2020-08-201-0/+7
| | | | | This is applies the upstream PR to our repo: https://github.com/tree-sitter/tree-sitter-python/pull/73
* Python: fix some highlightsSantos Gallegos2020-08-181-3/+3
| | | | These aren't valid lua patterns
* Python: update highlightsSantos Gallegos2020-08-171-4/+15
| | | | | - Fix "as" outside imports - Add builtin classes and constants
* chore(highlights): remove is predicate usageSteven Sojka2020-08-171-2/+0
|
* Python: update highlightsSantos Gallegos2020-08-161-33/+37
| | | | | | | - 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)
* Python: update localsSantos Gallegos2020-08-161-7/+9
|
* fix(queries): use vim-match for non lua regexesSteven Sojka2020-08-161-2/+2
|
* feat(highlights): add is predicateSteven Sojka2020-08-162-8/+10
|
* Python highlights: Highlight ->, ...Stephan Seitz2020-08-141-1/+2
|
* Python: update textobjects queriesSantos Gallegos2020-08-041-1/+22
|
* Fix #198: prefer method highlighting over attributeStephan Seitz2020-07-221-4/+4
|
* Python highlights: add lambda parametersStephan Seitz2020-07-221-0/+6
|
* Python highlights: highlight functions with self as methods (#198)Stephan Seitz2020-07-201-0/+13
| | | | Also highlight __init__/__new__ as constructor
* Python textobjects: Include @decorators and improve @conditional.innerStephan Seitz2020-07-151-2/+10
|
* Add Python textobjectsStephan Seitz2020-07-141-0/+24
|
* Add textobjects moduleStephan Seitz2020-07-141-0/+3
|
* Python locals: with_statement can define variablesStephan Seitz2020-07-091-0/+4
|
* Python highlights: Surround type subscript query with (type ...)Stephan Seitz2020-07-091-2/+3
|
* Introduce @definition.import for Python/JavascriptStephan Seitz2020-07-081-0/+8
|
* Highlight complete type definitionStephan Seitz2020-07-081-0/+2
|
* Python locals/highlights: Parameters can be optionally typedStephan Seitz2020-07-082-14/+21
|
* add python asynckiyan422020-06-301-0/+1
|
* Python highlights: Reset highlighting in f-string interpolationStephan Seitz2020-06-261-2/+3
| | | | | This solution is preferable to `(identifier) @Normal` since otherwise everything without highlight will use string-highlighting.
* Python highlights: Add walrus operatorStephan Seitz2020-06-261-0/+1
|
* Adapt Python highlights to new query syntaxStephan Seitz2020-06-242-81/+66
|
* Add highlighting of dunder identifiers (e.g. __all__, __add__) to Python ↵Stephan Seitz2020-06-211-0/+3
| | | | highlights
* Updated python highlightsJakub Łuczyński2020-06-211-45/+31
| | | | | | | | | * 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
* Update python locals: `list_splat` and `dictionary_splat` define variables ↵Stephan Seitz2020-06-021-0/+14
| | | | as parameters
* Improve Python highlightsStephan Seitz2020-05-281-0/+33
| | | | | | | | | | - 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
* Introduce `@include`Stephan Seitz2020-05-171-3/+3
|
* Add python/highlights.scm from tree-sitter-pythonStephan Seitz2020-05-172-0/+182
|
* Add python locals.scmStephan Seitz2020-05-161-0/+65