binding that starts with pre/post is interpreted as injection
Minimum code to reproduce:
```nix
{
previous = "asd";
}
```
<img width="869" height="403" alt="Image" src="https://github.com/user-attachments/assets/7853485c-f598-40df-ad5b-d2cfa8085772" />
Because of this injection highlight and indentation of code also gets messed up.
The issue comes from here imo: https://github.com/nix-community/tree-sitter-nix/blob/eabf96807ea4ab6d6c7f09b671a88cd483542840/queries/injections.scm#L6-L12
关闭于 2026-02-20 1 条评论