diff options
| author | Zheng PiaoDan <zhengpiaodan@gmail.com> | 2023-05-13 06:03:05 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-13 15:03:05 +0900 |
| commit | dba8c8e781cf9cc88a47ad65edf182784fdffaf1 (patch) | |
| tree | cdba6b27c15498cf2ae90ce1b577dc4beec6b96e /queries/nickel | |
| parent | feat(cpon): update queries (diff) | |
| download | nvim-treesitter-dba8c8e781cf9cc88a47ad65edf182784fdffaf1.tar nvim-treesitter-dba8c8e781cf9cc88a47ad65edf182784fdffaf1.tar.gz nvim-treesitter-dba8c8e781cf9cc88a47ad65edf182784fdffaf1.tar.bz2 nvim-treesitter-dba8c8e781cf9cc88a47ad65edf182784fdffaf1.tar.lz nvim-treesitter-dba8c8e781cf9cc88a47ad65edf182784fdffaf1.tar.xz nvim-treesitter-dba8c8e781cf9cc88a47ad65edf182784fdffaf1.tar.zst nvim-treesitter-dba8c8e781cf9cc88a47ad65edf182784fdffaf1.zip | |
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
}
````
Diffstat (limited to 'queries/nickel')
| -rw-r--r-- | queries/nickel/indents.scm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/queries/nickel/indents.scm b/queries/nickel/indents.scm index 23e779bb1..3195d7feb 100644 --- a/queries/nickel/indents.scm +++ b/queries/nickel/indents.scm @@ -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 |
