Commit graph

13 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
7927a8cde7 Add record declaration indentation
All checks were successful
continuous-integration/drone/push Build is passing
2022-06-13 11:30:16 +02:00
96edb1d0f7 Add '@indent_end' markers
Ensures for example that the following scenario

```tiger
let
in
    (
    ) /* <- Inputting a new-line will indent the cursor */
end
```

Does not happen.
2022-06-12 21:04:18 +02:00
6216812a33 Add variable declarations indents
All checks were successful
continuous-integration/drone/push Build is passing
2022-06-12 20:45:07 +02:00
5545b9c926 Add values indents 2022-06-12 20:45:07 +02:00
8a56748e88 Add functions indents 2022-06-12 20:45:07 +02:00
7975ca2486 Add groupings indents 2022-06-12 20:40:56 +02:00
bca103a393 Fix indent queries
You need to add '@indent' to the *parent* node, which whill indent the
children. For some reason I understood it as marking the node that
should be indented when I wrote these.

These were tested manually in Neovim, I need to add a way to test them
correctly though.
2022-06-12 20:38:51 +02:00
7d0ab1f40c Add object-oriented indents 2022-06-04 21:54:44 +02:00
79413a9624 Do not indent inside strings 2022-06-04 11:00:41 +02:00
6732ec0994 Add loop indents 2022-06-04 10:58:14 +02:00
8ffe530561 Add conditional indents 2022-06-04 10:57:27 +02:00
83356398f9 Add comment indents
Yet another un-testable query with the vanilla tooling...
2022-06-04 10:54:36 +02:00