nvim-treesitter/queries/python
Fabian e01c7ce972
highlights(python): Improve self and cls highlight (#2134)
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.
2021-12-18 16:49:30 -05:00
..
folds.scm Python (folds): allow to fold strings 2021-01-02 04:21:47 +01:00
highlights.scm highlights(python): Improve self and cls highlight (#2134) 2021-12-18 16:49:30 -05:00
indents.scm indent: add Python @ignore queries 2021-01-14 13:54:43 +01:00
injections.scm Prefer lua-match over match 2021-11-23 10:02:06 +01:00
locals.scm chore: fix typos 2021-11-02 23:47:48 +01:00