Comments (8)
Could you elaborate? I don't understand what this issue relates to.
from rune.
quote!(something?;)
throws this error.
from rune.
Can you reproduce the exact error here for reference?
from rune.
error: unsupported punctuation
--> src/env.rs:47:30
|
47 | rune::macros::quote!(?;);
| ^
from rune.
I expect the reason is that quote
parses all punctuation that is Spacing::Joint
as one tt, but it should be two in this case.
from rune.
Right, so yeah, it's an error we raise:
rune/crates/rune-macros/src/quote.rs
Line 115 in 40786fe
So we need to fix it, somehow :)
from rune.
So a way to do this would be to improve kind_from_punct
to process more than one punctuation in case it's a joint composite which can actually be decomposed into multiple punctuations. Since both ?
and ;
are already separate punctuations.
from rune.
I have a list of the conditions to parse rust tts from joint tokens here:
https://github.com/ModProg/proc-macro-utils/blob/196525b066a3b5f8d751da6e7574731790827bb3/src/parser.rs#L1047
from rune.
Related Issues (20)
- Support patterns in quote! iterators
- Support `derive(Any)` type protocols HOT 1
- Cannot mutate nested field HOT 2
- Using a dedicated enum for the `Try` protocol HOT 2
- "halted for unexpected reason `awaited`" Error HOT 7
- Should `#[rune::function]` be associated if function returns `Self` HOT 1
- Add default `T=()` to `rune::Result` HOT 1
- Modify a vm function HOT 1
- request: support traits HOT 4
- Support pattern matching which is open `..` in the middle of an array HOT 1
- Memory sandboxing
- Feature request: Support autocomplete for Ace editor HOT 1
- Function Pointers HOT 2
- 0.13.0 release build failure HOT 7
- Documentation enhancements HOT 1
- Bad link in rune-modules's README
- request: support should_panic for #[test] functions HOT 3
- Error handling in built-in toml module HOT 3
- Feature request: Support variable swapping HOT 2
- Field not available to get on <struct> 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 rune.