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

feature: Support `&raw const` and `&raw mut` syntax

Open mkrasnitski opened this issue 1 year ago • 0 comments
trafficstars

Did you check the tree-sitter docs?

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

In Rust 1.82, syntax for creating raw pointers without casting from a reference was stabilized, namely &raw const and &raw mut. As it stands this new syntax is not properly supported, with the raw portion detected as an identifier instead of a modifier.

Describe the solution you'd like

Add support for this new syntax so that highlighting and other syntax features can be fixed.

Describe alternatives you've considered

The alternative is to not implement this but the syntax is already stable so there's no choice not to IMO.

Additional context

No response

mkrasnitski avatar Oct 19 '24 03:10 mkrasnitski