fix!: bring the scope autocompletion in by changing style input syntax
BREAKING CHANGE: `styly`, `sassy` macros syntax change. Now requires `{"$code"}`.
This commit is contained in:
parent
c3ffef04c3
commit
c5c550f0ce
1 changed files with 133 additions and 101 deletions
|
|
@ -1,7 +1,10 @@
|
|||
use sabry::styly;
|
||||
|
||||
styly!(pub const bundlemod {
|
||||
@use "tokens";
|
||||
// Sabry now (0.0.1-alpha.3) disallows unquoted styles
|
||||
// you won't benefit from unqouted styles though, as you won't get syntax highlighting
|
||||
// Also, unqouted styles are reserved for future
|
||||
styly!(pub const bundlemod {"
|
||||
@use 'tokens';
|
||||
.someth {
|
||||
@include tokens.clickable;
|
||||
background-color: black;
|
||||
|
|
@ -9,7 +12,9 @@ styly!(pub const bundlemod {
|
|||
background-color: white;
|
||||
}
|
||||
}
|
||||
});
|
||||
"});
|
||||
|
||||
styly!(pub filemod:sass "src/main.sass");
|
||||
|
||||
fn main(){
|
||||
println!("someth class codemod styles: {}", bundlemod::someth);
|
||||
|
|
|
|||
Loading…
Reference in a new issue