### Problem For the nushell [parser](https://github.com/nushell/tree-sitter-nu). <img width="735" alt="Image" src="https://github.com/user-attachments/assets/cc0244d0-8425-4dd6-bb01-d6895d6a49d5" /> The query is supposed to match only the last element in the code, but matches both. * It fails for almost all node types of nushell * It works for some other parsers like bash ### Steps to reproduce 1. clone the parser repo 2. `tree-sitter generate` 3. `tree-sitter query test.scm test.nu` test.scm: ```scheme (pipeline (pipe_element) @foo .) ``` test.nu ```nushell foo | bar ``` output ``` pattern: 0 capture: 0 - foo, start: (0, 0), end: (0, 3), text: `foo` pattern: 0 capture: 0 - foo, start: (1, 2), end: (1, 5), text: `bar` ``` ### Expected behavior Only match the last pipe_element, `bar` in test.nu above. ### Tree-sitter version (tree-sitter --version) 0.25.4 ### Operating system/version macOS 15.5