fix(nickel): wrong indent on line after top level comment (#4792)

* fix(nickel): wrong indent on line after top level comment

Previous incorrect indentation on line after top level comment:

```
# no indent after this comment
  {
  another = 1
}
```

Expected result:

```
# no indent after this comment
{
  another = 1
}
````
This commit is contained in:
Zheng PiaoDan 2023-05-13 06:03:05 +00:00 committed by GitHub
parent ec0d0ffe51
commit dba8c8e781
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 5 deletions

View file

@ -1,13 +1,13 @@
[
(term)
(atom (uni_record)) ; for {...}
(atom terms: (term)) ; for [...]
] @indent.begin
[
"]"
"}"
] @indent.branch
] @indent.end @indent.branch
[
"]"
"}"
] @indent.end
(comment)
] @indent.auto