Commit graph

6 commits

Author SHA1 Message Date
Pham Huy Hoang
57a8acf0c4 chore: query formatting 2024-01-19 16:58:37 +01:00
George Harker
cb568af539 use indent.X syntax for captures and properties of set directives
update CONTRIBUTING.md

adjust indents for bass

fix doc capture comment
2023-03-24 13:07:53 -04:00
Phelipe Teles
8bd07c88b6 fix(indents/yaml): only indent mapping pair if value is a block
This improves the following situation, in which '|' is the cursor position:

```yaml
- key1: value1
  key2: value2|
```

Before this commit, by pressing Enter would result in this indentation:

```yaml
- key1: value1
  key2: value2
    |
```

Which is less convenient than this:

```yaml
- key1: value1
  key2: value2
  |
```
2022-06-14 22:37:52 +02:00
Phelipe Teles
1a49d068a7 fix(indents/yaml): improve error handling
This helps to solve the first issue reported at #1377.

The problem is that the line loses its indentation when we start
inserting a new mapping pair (specifically, when we enter the character
":").

The issue seems to be solved by auto indenting ERROR nodes.
2022-06-14 22:37:52 +02:00
Phelipe Teles
5e8ec943f8 fix(indents/yaml): indent sequence/list items
This solves the second issue reported at #1377, in which the cursor
would not be aligned with the line "key2: value2" when entering a new
line below it.

```yaml
- key1: value1
  key2: value2
```
2022-06-14 22:37:52 +02:00
elianiva
9184cf3953 feat: added more indent queries 2021-01-14 14:43:04 +01:00