summaryrefslogtreecommitdiff
path: root/queries/python
AgeCommit message (Collapse)Author
2020-11-30Update Python queriesStephan Seitz
2020-11-23Python highlights: Fix #688 (definition.associated -> field)Stephan Seitz
2020-11-03Fix Python queries for parser updateStephan Seitz
2020-10-05Dart highlights: Reset highlight in interpolationStephan Seitz
2020-10-04Remove textobjects moduleStephan Seitz
2020-09-21Python locals: account for ↵Stephan Seitz
https://github.com/tree-sitter/tree-sitter-python/pull/83
2020-09-19fix(python): use `@Normal` again for f-strings `@none` is not aggressive enoughStephan Seitz
2020-09-19Add @keyword.operator for operators that are English words and add ↵Stephan Seitz
@exception for Java/JS
2020-09-17Remove @definition.doc capturesSantos Gallegos
These aren't really definitions and are being show in the definitions list. We aren't using them at the moment, we could use another group or query file.
2020-09-15reset python interpolation nodekiyan42
2020-09-14Fix #307: Use and document TSVariable/TSVariableBuiltin in all languagesStephan Seitz
2020-09-14Folds: rename query files to folds.scm to be consistentSantos Gallegos
We use plural names for all query files except folds.
2020-09-11ci: fix wrong queriesThomas Vigouroux
2020-09-03Python: update foldsSantos Gallegos
Missed one
2020-09-03Python: add foldsSantos Gallegos
2020-08-20Python highlights: add additional operatorsStephan Seitz
This is applies the upstream PR to our repo: https://github.com/tree-sitter/tree-sitter-python/pull/73
2020-08-18Python: fix some highlightsSantos Gallegos
These aren't valid lua patterns
2020-08-17Python: update highlightsSantos Gallegos
- Fix "as" outside imports - Add builtin classes and constants
2020-08-17chore(highlights): remove is predicate usageSteven Sojka
2020-08-16Python: update highlightsSantos Gallegos
- 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-16Python: update localsSantos Gallegos
2020-08-16fix(queries): use vim-match for non lua regexesSteven Sojka
2020-08-16feat(highlights): add is predicateSteven Sojka
2020-08-14Python highlights: Highlight ->, ...Stephan Seitz
2020-08-04Python: update textobjects queriesSantos Gallegos
2020-07-22Fix #198: prefer method highlighting over attributeStephan Seitz
2020-07-22Python highlights: add lambda parametersStephan Seitz
2020-07-20Python highlights: highlight functions with self as methods (#198)Stephan Seitz
Also highlight __init__/__new__ as constructor
2020-07-15Python textobjects: Include @decorators and improve @conditional.innerStephan Seitz
2020-07-14Add Python textobjectsStephan Seitz
2020-07-14Add textobjects moduleStephan Seitz
2020-07-09Python locals: with_statement can define variablesStephan Seitz
2020-07-09Python highlights: Surround type subscript query with (type ...)Stephan Seitz
2020-07-08Introduce @definition.import for Python/JavascriptStephan Seitz
2020-07-08Highlight complete type definitionStephan Seitz
2020-07-08Python locals/highlights: Parameters can be optionally typedStephan Seitz
2020-06-30add python asynckiyan42
2020-06-26Python highlights: Reset highlighting in f-string interpolationStephan Seitz
This solution is preferable to `(identifier) @Normal` since otherwise everything without highlight will use string-highlighting.
2020-06-26Python highlights: Add walrus operatorStephan Seitz
2020-06-24Adapt Python highlights to new query syntaxStephan Seitz
2020-06-21Add highlighting of dunder identifiers (e.g. __all__, __add__) to Python ↵Stephan Seitz
highlights
2020-06-21Updated python highlightsJakub Łuczyński
* 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-02Update python locals: `list_splat` and `dictionary_splat` define variables ↵Stephan Seitz
as parameters
2020-05-28Improve Python highlightsStephan Seitz
- 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-17Introduce `@include`Stephan Seitz
2020-05-17Add python/highlights.scm from tree-sitter-pythonStephan Seitz
2020-05-16Add python locals.scmStephan Seitz