tree-sitter-rust icon indicating copy to clipboard operation
tree-sitter-rust copied to clipboard

bug: Incorrect parsing of typecast next to greater than sign

Open nickeb96 opened this issue 5 months ago • 0 comments

Did you check the tree-sitter docs?

Is your feature request related to a problem? Please describe.

if data.len() as wgpu::BufferAddress <= self.buffer.size() {
    // ...
}

The < part of the greater-than-or-equal-to operator is being interpreted as the opening of type arguments to wgpu::BufferAddress and causing a parse error

Describe the solution you'd like

N/A

Describe alternatives you've considered

N/A

Additional context

No response

nickeb96 avatar Aug 06 '25 13:08 nickeb96