| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | feat(python): add break/continue dedent | Pham Huy Hoang | 2023-03-25 | 1 | -0/+5 |
| | | |||||
| * | feat(python): add match-case indents | Pham Huy Hoang | 2023-03-25 | 1 | -0/+4 |
| | | |||||
| * | use indent.X syntax for captures and properties of set directives | George Harker | 2023-03-24 | 1 | -66/+60 |
| | | | | | | | | | update CONTRIBUTING.md adjust indents for bass fix doc capture comment | ||||
| * | split delimiter into open_delimiter and close_delimiter | George Harker | 2023-03-24 | 1 | -13/+29 |
| | | |||||
| * | refactor(indent)!: Rework indent, aligned indent | George Harker | 2023-03-24 | 1 | -19/+30 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | indents now use @indent.X style captures, and indent.PROP for properties to set on those captures, as documented in the help. Captures are: indent.auto indent.begin indent.end indent.dedent indent.branch indent.ignore indent.align indent.zero Properties are: indent.immediate indent.start_at_same_line indent.open_delimiter indent.close_delimiter indent.increment indent.avoid_last_matching_next Multiple opening delims on one line and multiple closing on a line are collapsed so as not to over indent, The final line of @indent.align blocks which must in some cases be treated specially to avoid clashing with the next line is treated the same regardless of whether the @indent.align capture actually uses aligned indentation or just normal indentation. The indent.avoid_last_matching_next property controls this. Adjust python to use these. List, set, dict and tuple all use @indent.align which permits both hanging and aligned styles. Finally, try: on it’s own will indent when typing live but make no guaranteeds about whole-file formatting. Includes lucario387:fix-align-indent | ||||
| * | fix(python): add object as `@type.builtin` | Anthony Shi | 2023-03-22 | 1 | -1/+1 |
| | | |||||
| * | feat(python): add "return" patterns to @indent_end | Pham Huy Hoang | 2023-03-16 | 1 | -0/+9 |
| | | | | | | | `return ...` is usually the last line of a function/statement, so mark some possible patterns of `return` with `@indent_end` to dedent the line after it | ||||
| * | fix(python): add missing @indent_end | Pham Huy Hoang | 2023-03-16 | 1 | -2/+16 |
| | | |||||
| * | fix: change folding algorithm to fix Python indents | George Harker | 2023-03-15 | 1 | -11/+27 |
| | | |||||
| * | feat: add `@string.documentation` where applicable | Amaan Qureshi | 2023-03-05 | 1 | -1/+12 |
| | | |||||
| * | feat!: add `@keyword.coroutine` capture | Amaan Qureshi | 2023-03-03 | 1 | -2/+5 |
| | | |||||
| * | Update highlights.scm for Python | Anthony Shi | 2023-03-02 | 1 | -0/+2 |
| | | | | Added new keywords "is not" and "not in" | ||||
| * | python(highlights): adapt query to parser change | Christian Clason | 2023-02-28 | 1 | -5/+1 |
| | | |||||
| * | highlights(python): fix captures | ObserverOfTime | 2022-11-26 | 1 | -9/+38 |
| | | |||||
| * | highlights(python): add "except*" | Stephan Seitz | 2022-10-25 | 1 | -0/+1 |
| | | | | | | | Added in https://github.com/tree-sitter/tree-sitter-python/pull/176 About the feature https://realpython.com/python311-exception-groups/#exception-groups-and-except-in-python-311 | ||||
| * | highlights: use @preproc where appropriate | ObserverOfTime | 2022-10-15 | 1 | -0/+4 |
| | | |||||
| * | feat(spell): support more languages | Lewis Russell | 2022-09-26 | 1 | -2/+1 |
| | | |||||
| * | feat(spell): upstream spell queries from spellsitter | Lewis Russell | 2022-09-06 | 1 | -0/+4 |
| | | |||||
| * | Split func/method definition from calls in python highlighting query | lfenzo | 2022-08-03 | 1 | -2/+2 |
| | | |||||
| * | fix: keep cls variable highlighting consistent in class methods | Ryan Barth | 2022-06-14 | 1 | -10/+2 |
| | | |||||
| * | python(folds): fold whole functions not only body | Stephan Seitz | 2022-05-15 | 1 | -8/+9 |
| | | |||||
| * | Python: highlight future import (#2936) | Santos Gallegos | 2022-05-13 | 1 | -0/+1 |
| | | | | | | * Python: highlight future import * Use constant.builtin | ||||
| * | Python: highlight raise from statement | Santos Gallegos | 2022-05-01 | 1 | -0/+2 |
| | | |||||
| * | fixup! highlights(python): highlight exception keywords | Ferdinand Ratajczak | 2022-04-07 | 1 | -4/+0 |
| | | |||||
| * | highlights(python): highlight exception keywords | Ferdinand Ratajczak | 2022-04-07 | 1 | -0/+11 |
| | | |||||
| * | highlights(python): "from" in yield should be `@keyword.return` | Stephan Seitz | 2022-04-01 | 1 | -1/+4 |
| | | | | | Fixes #2712 | ||||
| * | locals(python): adapt as_pattern to upstream change | Stephan Seitz | 2022-02-07 | 1 | -1/+1 |
| | | |||||
| * | fix: Allow re-parsing in Python, XFAIL `\` indentation test | Stephan Seitz | 2022-02-06 | 1 | -1/+0 |
| | | |||||
| * | indents: allow aligned_indent for unfinished calls in C and Python | Stephan Seitz | 2022-02-05 | 1 | -0/+2 |
| | | |||||
| * | highlights(python): add support for pattern matching | Stephan Seitz | 2022-01-28 | 2 | -6/+3 |
| | | | | | | Fixes #2080 Depends on https://github.com/tree-sitter/tree-sitter-python/pull/140 | ||||
| * | feat(indent): support `@aligned_indent` for python | Munif Tanjim | 2022-01-21 | 1 | -3/+14 |
| | | |||||
| * | feat: rewrite indent module | Munif Tanjim | 2022-01-21 | 1 | -9/+4 |
| | | |||||
| * | Remove Python docstring injections | Rafik Draoui | 2022-01-04 | 1 | -18/+0 |
| | | | | | | | | | | | | | | | | | These injections lead to inconsistent highlighting since some edge cases aren't handled (as mentioned in the PR description that introduced the injections [0]). Besides, not all Python projects use reStructuredText syntax in docstrings. If someone still wants to use them, they can extend the base injection queries through `after/queries/` [1] or enable them with `vim.treesitter.set_query`. See also: https://github.com/nvim-treesitter/nvim-treesitter/pull/1204 [0]: https://github.com/nvim-treesitter/nvim-treesitter/pull/917 [1]: https://github.com/nvim-treesitter/nvim-treesitter/tree/ad69e2528ac382b7cbf28f1ac7ee450981734ab0#adding-queries | ||||
| * | Update queries | Santos Gallegos | 2021-12-22 | 1 | -1/+1 |
| | | | | | | - Don't use the old form for predicates - Update some invalid queries | ||||
| * | highlights(python): Improve self and cls highlight (#2134) | Fabian | 2021-12-18 | 1 | -5/+8 |
| | | | | | | | | | | | | | | | | | | 1. This function simplifies an unnecessary lua-match usage. 2. Fixes an accidental change, where "cls" was changed to "class" (fe4f320b66) 3. Match functions, which have have a decorator. 4. But exclude @staticmethod 5. Only highlight "cls" as @variable.builtin when the decorator is @classmethod This might be a bit to complicated and some of this not to useful, as this existing rule: ```scm ((identifier) @variable.builtin (#eq? @variable.builtin "self")) ``` overwrites the queries anyway. | ||||
| * | Prefer lua-match over match | Lewis Russell | 2021-11-23 | 2 | -7/+7 |
| | | | | | as string.find is much quicker than vim.regex:match* | ||||
| * | Python: highlight semicolon | Santos Gallegos | 2021-11-12 | 1 | -1/+1 |
| | | |||||
| * | chore: fix typos | Dundar Göc | 2021-11-02 | 2 | -2/+2 |
| | | |||||
| * | Update queries/python/highlights.scm | Santos Gallegos | 2021-11-01 | 1 | -1/+1 |
| | | |||||
| * | Revert "feat: add `del` keyword for highlights" | Santos Gallegos | 2021-11-01 | 1 | -2/+2 |
| | | | | | This reverts commit 385193d41fe6b74fe0e3698588ae54545d1cd88b. | ||||
| * | feat: add `del` keyword for highlights | Ashish Panigrahi | 2021-11-01 | 1 | -2/+2 |
| | | |||||
| * | Python: highlight interpolation escaped chars | Santos Gallegos | 2021-10-22 | 1 | -1/+5 |
| | | | | | Support for these was just added in the grammar. | ||||
| * | Python: fix class highlights (#1548) | Santos Gallegos | 2021-07-11 | 1 | -6/+7 |
| | | |||||
| * | Highlights(python): Add `@keyword.function` | Sergio Alejandro Vargas | 2021-07-06 | 1 | -2/+5 |
| | | | | | Use `@keyword.function` for `def` and `lambda` | ||||
| * | feat(keywords) merge return and yield into keyword.return group | antonk52 | 2021-07-04 | 1 | -4/+1 |
| | | |||||
| * | feat(keywords) add keyword.return & keyword.yield | antonk52 | 2021-07-04 | 1 | -2/+8 |
| | | |||||
| * | python(highlights): don't use type for APP | Stephan Seitz | 2021-07-01 | 1 | -1/+1 |
| | | |||||
| * | highlights(python): use any-of? | Stephan Seitz | 2021-05-16 | 1 | -9/+30 |
| | | |||||
| * | Revert "Comment: use `@combined` to create just one tree per buffer (#1252)" | Santos Gallegos | 2021-05-07 | 1 | -1/+1 |
| | | | | | This reverts commit 4a7a713c527f57c355bc817f16fc6d955b8cce9b. | ||||
| * | Comment: use `@combined` to create just one tree per buffer (#1252) | Santos Gallegos | 2021-04-28 | 1 | -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 | ||||
