| Age | Commit message (Collapse) | Author |
|
|
|
Follow upstream change
https://github.com/tree-sitter/tree-sitter-go/commit/beb36fc9be211046d43a165eb8d885bcde6004a1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Add ninja parser
* Add branch main
* No need for ftdetect
|
|
|
|
|
|
|
|
|
|
|
|
Signed-off-by: Fymyte <pierguill@gmail.com>
|
|
Signed-off-by: Fymyte <pierguill@gmail.com>
|
|
Signed-off-by: Fymyte <pierguill@gmail.com>
|
|
Signed-off-by: Fymyte <pierguill@gmail.com>
|
|
|
|
|
|
A recent change broke highlighting for namespaces & generic types like
`foo.bar` and `foo<t>`.
|
|
|
|
Signed-off-by: Fymyte <pierguill@gmail.com>
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Assume that any identifiers that aren't function calls, types, fields or
constants are variables. This is consistent with the highlighting
definitions for other languages. Some themes (e.g. zenbones) make use of
this information and they don't look quite right unless we set those
groups.
|
|
* Add support for Pascal
* Pascal: Replace some of the capture groups, use lua-match where possible
|
|
ref https://github.com/nvim-treesitter/tree-sitter-query/pull/17
|
|
Similar to https://github.com/tree-sitter/tree-sitter-php/blob/57f855461aeeca73bd4218754fb26b5ac143f98f/grammar.js#L130-L132
Closes https://github.com/nvim-treesitter/nvim-treesitter/issues/2156
|
|
* feat(fusion): update tests
* fix(fusion): update lockfile
* fix(fusion): update to (highlight breaking) version 1.1.0
* update grammer to introduce afx support
* update tests and queries
* fix: revert lockfile update of unrelated grammars
* fix: update to 1.1.1 and fix hightlights
* fix: use @tag.attribute capture to match specs
Co-authored-by: Jirgn <jirgn76@googlemail.com>
|
|
- Don't use the old form for predicates
- Update some invalid queries
|
|
|
|
|
|
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.
|
|
The new golang 1.18 version (currently in beta) [introduced](https://github.com/golang/go/issues/45713) a new file type
called `go.work`.
This commit adds support for the syntax of that file using the https://github.com/omertuc/tree-sitter-go-work repository
That repository is heavily based on previous work in the https://github.com/camdencheek/tree-sitter-go-mod repository, with a few
minor changes to make it work on the very similar `go.work` files.
|
|
|