aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python
Commit message (Collapse)AuthorAgeFilesLines
* Python: fix class highlights (#1548)Santos Gallegos2021-07-111-6/+7
|
* Highlights(python): Add `@keyword.function`Sergio Alejandro Vargas2021-07-061-2/+5
| | | | Use `@keyword.function` for `def` and `lambda`
* feat(keywords) merge return and yield into keyword.return groupantonk522021-07-041-4/+1
|
* feat(keywords) add keyword.return & keyword.yieldantonk522021-07-041-2/+8
|
* python(highlights): don't use type for APPStephan Seitz2021-07-011-1/+1
|
* highlights(python): use any-of?Stephan Seitz2021-05-161-9/+30
|
* Revert "Comment: use `@combined` to create just one tree per buffer (#1252)"Santos Gallegos2021-05-071-1/+1
| | | | This reverts commit 4a7a713c527f57c355bc817f16fc6d955b8cce9b.
* Comment: use `@combined` to create just one tree per buffer (#1252)Santos Gallegos2021-04-281-1/+1
| | | | | | | | | | | | * Comment: use `@combined` to create just one tree per buffer There is no need to create a tree per line/block for comments. Should fix https://github.com/nvim-treesitter/nvim-treesitter/issues/1251 * Add injections for scss * Fix jsonc * Combine jsdoc
* Add comment parser to highlight comment tags (#893)Santos Gallegos2021-03-121-0/+2
| | | Closes #236
* Python: inject rst in docstrings (#917)Santos Gallegos2021-02-051-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* indent: add Python @ignore queriesJędrzej Boczar2021-01-141-0/+4
|
* indent: add Python @return queriesJędrzej Boczar2021-01-141-0/+6
|
* Python highlights: update definition of decoratorStephan Seitz2021-01-071-1/+4
|
* Python locals: Add new node with_clauseStephan Seitz2021-01-071-1/+2
|
* Remove usages of `@embedded` in highlightsStephan Seitz2021-01-061-1/+1
|
* Python highlights: Add regex injections: re.match(r"...")Stephan Seitz2021-01-031-0/+6
|
* Python (folds): allow to fold stringsSantos Gallegos2021-01-021-0/+2
| | | | Mostly useful for folding docstrings
* Improve python/indents.scmJędrzej Boczar2020-12-211-7/+29
|
* Python: fix self highlighingSantos Gallegos2020-12-181-1/+1
|
* Update indents.scmEvan2020-12-181-0/+2
|
* Create indents.scm for pythonEvan2020-12-181-0/+14
|
* Update Python queriesStephan Seitz2020-11-302-12/+40
|
* Python highlights: Fix #688 (definition.associated -> field)Stephan Seitz2020-11-231-1/+1
|
* Fix Python queries for parser updateStephan Seitz2020-11-032-13/+13
|
* Dart highlights: Reset highlight in interpolationStephan Seitz2020-10-051-1/+1
|
* Remove textobjects moduleStephan Seitz2020-10-041-56/+0
|
* Python locals: account for ↵Stephan Seitz2020-09-211-8/+6
| | | | https://github.com/tree-sitter/tree-sitter-python/pull/83
* fix(python): use `@Normal` again for f-strings `@none` is not aggressive enoughStephan Seitz2020-09-191-1/+1
|
* Add @keyword.operator for operators that are English words and add ↵Stephan Seitz2020-09-191-4/+7
| | | | @exception for Java/JS
* Remove @definition.doc capturesSantos Gallegos2020-09-171-2/+1
| | | | | | 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.
* reset python interpolation nodekiyan422020-09-151-1/+1
|
* Fix #307: Use and document TSVariable/TSVariableBuiltin in all languagesStephan Seitz2020-09-141-4/+7
|
* Folds: rename query files to folds.scm to be consistentSantos Gallegos2020-09-141-0/+0
| | | | We use plural names for all query files except folds.
* ci: fix wrong queriesThomas Vigouroux2020-09-111-2/+2
|
* 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
|