tree-sitter-rust
tree-sitter-rust copied to clipboard
feature: Support `&raw const` and `&raw mut` syntax
trafficstars
Did you check the tree-sitter docs?
- [ ] I have read all the tree-sitter docs if it relates to using the parser
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