Commit graph

11 commits

Author SHA1 Message Date
Bruno BELANYI 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
Bruno BELANYI 6216812a33 Add variable declarations indents
All checks were successful
continuous-integration/drone/push Build is passing
2022-06-12 20:45:07 +02:00
Bruno BELANYI 5545b9c926 Add values indents 2022-06-12 20:45:07 +02:00
Bruno BELANYI 8a56748e88 Add functions indents 2022-06-12 20:45:07 +02:00
Bruno BELANYI 7975ca2486 Add groupings indents 2022-06-12 20:40:56 +02:00
Bruno BELANYI 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
Bruno BELANYI 7d0ab1f40c Add object-oriented indents 2022-06-04 21:54:44 +02:00
Bruno BELANYI 79413a9624 Do not indent inside strings 2022-06-04 11:00:41 +02:00
Bruno BELANYI 6732ec0994 Add loop indents 2022-06-04 10:58:14 +02:00
Bruno BELANYI 8ffe530561 Add conditional indents 2022-06-04 10:57:27 +02:00
Bruno BELANYI 83356398f9 Add comment indents
Yet another un-testable query with the vanilla tooling...
2022-06-04 10:54:36 +02:00