Support Rust extended (opt-in) syntax
See original GitHub issueSome opt-in features of Rust have syntax related to it. A simple one that I’m using is inclusive_range_syntax
, which allows a...b
syntax. It’s a little annoying to have that marked red in the IDE. Conditionally supporting the syntax is probably more complicated, but as a start, can you support the extended syntax?
I think these are features that come with syntax:
-
advanced_slice_patterns
-
slice_patterns
-
box_patterns
-
box_syntax
-
inclusive_range_syntax
-
log_syntax
(low-priority, likely to be removed) -
non_ascii_idents
(unstable, maybe already supported?) -
type_ascription
(maybe already supported?)
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Conditional compilation - The Rust Reference
Conditionally compiled source code is source code that may or may not be considered a part of the source code depending on certain...
Read more >regex - Rust - Docs.rs
This crate's documentation provides some simple examples, describes Unicode support and exhaustively lists the supported syntax.
Read more >User Manual - rust-analyzer
This is the list of config options rust-analyzer supports: ... Extends or shrinks the current selection to the encompassing syntactic construct (expression, ...
Read more >Extend with Custom Syntax - Rhai - Embedded Scripting for Rust
Where a custom syntax significantly simplifies the code and significantly enhances understanding of the code's intent. Where certain logic cannot be easily ...
Read more >rust/RELEASES.md at master · rust-lang/rust - GitHub
Added the cargo add command for adding dependencies to Cargo.toml from the command-line. docs; Package ID specs now support name@version syntax in addition ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@alexeykudinkin done: https://github.com/intellij-rust/intellij-rust/issues/511
@matklad it’s still better not to keep it in mind, but keep it on record: let’s create a separate issue for that.