Comments (9)
It seems like anything following the macro call gets munched, even if it's a comment or a use.
from rune.
Is there just a missing \n
? Or more destructive?
from rune.
It chomps away all newlines (one per fmt call) until there's no separation at all between items.
from rune.
I think this invocation needs to add a newline:
rune/crates/rune/src/fmt/printer.rs
Lines 687 to 689 in ca44d50
So true, false
as the whitespace args. Super-busy at the moment but might have some time to look more in-depth during the weekend.
from rune.
No worries. Just thought you'd be interested! Take your time or if you want, I can look into it.
from rune.
Hmm, running locally I hit
error: Compile error
┌─ scripts/make_function.rn:3:5
│
3 │ make_function!(inner_fn => { "Hello World Again!" });
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Missing macro `make_function`
on latest main.
Using the same command as CI; cargo run --bin rune -- fmt --experimental --recursive --verbose --workspace --check tools scripts
from rune.
Looks to be lookup order, though if I switch the import to the top it fails on the macro evaluation.
from rune.
Item expansion inside of functions has also* been temporarily disabled until I can figure out how to make it less messy. Try with the current version I just pushed.
I also have a pretty bad cold, so I might be checked out for a few more days.
from rune.
Closed in #539
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
- Feature request: Traits HOT 3
- Support pattern matching which is open `..` in the middle of an array HOT 1
- Memory sandboxing
- Feature request: Support autocomplete for Ace editor
- Function Pointers HOT 2
- 0.13.0 release build failure HOT 7
- Documentation enhancements HOT 1
- Bad link in rune-modules's README
- Support should_panic for rune tests 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.