ogham / rust-bbedit Goto Github PK
View Code? Open in Web Editor NEWRust language module for BBEdit
Rust language module for BBEdit
It seems the default highlighting for a few functions is black, making it unreadable on dark color schemes. What scheme are you using?
If the value of an attribute is a string containing an escaped newline, it is misinterpreted as a premature end of the string. Then the closing double quote is misinterpreted as the start of a new string, and all following code is highlighted as the content of the string.
e.g. from rust /src/libcore/iter.rs:
#[rustc_on_unimplemented="a collection of type `{Self}` cannot be \
built from an iterator over elements of type `{A}`"]
pub trait FromIterator<A>: Sized {
BBEdit 12 is refusing to load the language module. When I launch it from the command line with
/Applications/BBEdit.app/Contents/MacOS/BBEdit
then it produces the following error:
2018-07-12 18:20:28.936 BBEdit[99980:2280788] Error loading /Users/xxx/Library/Application Support/BBEdit/Packages/Rust.bbpackage/Contents/Language Modules/Rust.bblm/Contents/MacOS/Rust: dlopen(/Users/xxx/Library/Application Support/BBEdit/Packages/Rust.bbpackage/Contents/Language Modules/Rust.bblm/Contents/MacOS/Rust, 262): no suitable image found. Did find:
/Users/xxx/Library/Application Support/BBEdit/Packages/Rust.bbpackage/Contents/Language Modules/Rust.bblm/Contents/MacOS/Rust: mach-o, but wrong architecture
/Users/xxx/Library/Application Support/BBEdit/Packages/Rust.bbpackage/Contents/Language Modules/Rust.bblm/Contents/MacOS/Rust: mach-o, but wrong architecture
2018-07-12 18:20:28.936 BBEdit[99980:2280788] The language module at /Users/xxx/Library/Application Support/BBEdit/Packages/Rust.bbpackage/Contents/Language Modules/Rust.bblm cannot be loaded because its main entry point (rustMain) could not be resolved. Please contact the language module's developer for assistance.
This is highlighted as though bar
is outside the string, and everything after bar
is treated as being the contents of another string:
fn main() {
let x = r#"foo"bar"#;
println!("{}", x);
}
The relevant bit of the docs: https://doc.rust-lang.org/reference/tokens.html#raw-string-literals
The documentation for this reads:
To compile your own version, you’ll need Xcode, Rust, and Cargo. The default schema outputs a .bblm, and comes with a Run build step so you can debug the module while BBEdit is running. You’ll also need the BBEdit SDK. The project assumes it’s mounted under /Volumes/BBEdit SDK.
However, the current BBEdit SDK does not come as a mountable disk image file.
With rustfmt 1.2.2-stable
(from April 2019), when I apply the text filter for rustfmt, a new document opens saying "Unrecognized option: 'write-mode'". Seems like it should be --check
only, c.f. rust-lang/rustfmt#2714
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.