Commit graph

8 commits

Author SHA1 Message Date
e7a123141f Align queries with 'nvim-treesitter'
Some checks failed
ci/woodpecker/push/check Pipeline failed
I fear the upstream queries may be broken, somehow, as they don't work
with `--apply-all-captures` which should match the "last query wins"
matching behaviour of `nvim-treesitter`.

I also removed `locals.scm`, as `tree-sitter` and `nvim-treesitter` don't
agree on how to write it, and I don't really care about it.

It does mean that the highlights can't tell the difference between `int`
the built-in and `int` the type alias anymore, but that's a small
edge-case (and `nvim-treesitter` didn't support it anyway).
2025-03-14 17:42:32 +00:00
724abf12e8 Fix 'method' keyword high-lighting
It makes more sense to add it to `keyword.function`, neovim does not
have a `keyword.method` category, and `method` is for the method name
itself.
2022-11-22 10:28:33 +01:00
b1c2da4cb4 Add 'self' built-in variable high-lighting 2022-06-04 21:45:54 +02:00
acb5765591 Make 'method' keyword more specific 2022-06-04 21:45:54 +02:00
065ad5f760 Make 'new' constructor keyword 2022-06-04 21:45:54 +02:00
9c51cbc93f Add 'Object' built-in type 2022-06-04 21:45:54 +02:00
425890a6fc Add methods high-lighting 2022-06-04 21:45:54 +02:00
555e10c736 Add object-oriented keywords high-lighting 2022-06-04 21:45:54 +02:00