Comments (1)
You're correct, of course. This isn't the only pattern where I've relied on convention to keep the scope narrow and avoid edge cases. Since the unspaced version is what's shown in The Rust Reference, The Little Book of Rust Macros, and all the codebases I've seen, that's how I've handled it.
from rust-syntax.
Related Issues (20)
- Lifetimes within procedural macros HOT 2
- Type scopes HOT 1
- rust grammar does not assign keyword scope to some keywords HOT 2
- Distinguish Display, Debug and Debug's pretty-print interpolation symbols from operators HOT 1
- Rust grammar: Doc comments in Rust are actually not comments, therefore shouldn't be marked as such
- Various textmate scope improvements HOT 1
- Wrong scope for `Self` in `*const Self`
- Create a different scope for function definition and function call
- Floats are not correctly highlighted HOT 1
- Weak keyword `union` oddity
- string.quoted.double.rust used twice HOT 2
- Incorrect scope for addition assignment operator '+=' HOT 1
- Different scopes are used for \xN8 and \xN9 in strings in Rust HOT 1
- Is this still maintained ? HOT 5
- How to use this extension? HOT 7
- Useless `"patterns"` array HOT 1
- Attribute Macro Parameters
- Non control-flow keywords
- Incorrect scope for variables starting with "true" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust-syntax.