question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support Rust extended (opt-in) syntax

See original GitHub issue

Some 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:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

0reactions
alexeykudinkincommented, Jul 4, 2016

@matklad it’s still better not to keep it in mind, but keep it on record: let’s create a separate issue for that.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found