summaryrefslogtreecommitdiff
path: root/queries/python
AgeCommit message (Collapse)Author
2021-03-12Add comment parser to highlight comment tags (#893)Santos Gallegos
Closes #236
2021-02-05Python: inject rst in docstrings (#917)Santos Gallegos
Since hasn't been much discussion around https://github.com/nvim-treesitter/nvim-treesitter/issues/806. I'm just porting the injection queries. I've been using this for a while now. Things I've noticed: - Due that rst uses indentation for its syntax, everything is treated as an block quote (but it looks good). This can be solved by having a predicate like `#dedent!`. - Looks like there is a bug in how the injected content is extracted ``` def foo(): """Foo bar""" ``` That would be parsed as a section title for some reason, but it's a paragraph. In rst it would be a title if the content was: ``` """ Foo bar """ ``` If the content is ``` """Foo bar""" ``` That's just a paragraph. I'll try to debug that from the neovim side next week or so.
2021-01-14indent: add Python @ignore queriesJędrzej Boczar
2021-01-14indent: add Python @return queriesJędrzej Boczar
2021-01-07Python highlights: update definition of decoratorStephan Seitz
2021-01-07Python locals: Add new node with_clauseStephan Seitz
2021-01-06Remove usages of `@embedded` in highlightsStephan Seitz
2021-01-03Python highlights: Add regex injections: re.match(r"...")Stephan Seitz
2021-01-02Python (folds): allow to fold stringsSantos Gallegos
Mostly useful for folding docstrings
2020-12-21Improve python/indents.scmJędrzej Boczar
2020-12-18Python: fix self highlighingSantos Gallegos
2020-12-18Update indents.scmEvan
2020-12-18Create indents.scm for pythonEvan
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