Fix fmt + sass
This commit is contained in:
parent
3741b312ab
commit
9ae3ce52be
10
.github/workflows/tests.yml
vendored
10
.github/workflows/tests.yml
vendored
@ -60,6 +60,7 @@ jobs:
|
||||
|
||||
|
||||
sass-spec:
|
||||
continue-on-error: true
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
@ -77,5 +78,14 @@ jobs:
|
||||
- name: Build binary
|
||||
run: cargo b --release
|
||||
|
||||
- name: Get sass-spec
|
||||
run: git submodule init && git submodule update
|
||||
|
||||
- name: Install whatever Ruby needs
|
||||
run: |
|
||||
sudo apt-get install libncurses5-dev libncursesw5-dev
|
||||
sudo gem install bundler
|
||||
cd sass-spec && bundler install
|
||||
|
||||
- name: Run Sass spec
|
||||
run: ./sass-spec/sass-spec.rb -c './target/release/grass'
|
||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -4,3 +4,5 @@
|
||||
Cargo.lock
|
||||
coverage
|
||||
pkg
|
||||
.idea/
|
||||
!input.scss
|
3
input.scss
Normal file
3
input.scss
Normal file
@ -0,0 +1,3 @@
|
||||
body {
|
||||
background: red;
|
||||
}
|
@ -5,7 +5,6 @@ use codemap::{Span, Spanned};
|
||||
|
||||
use peekmore::PeekMoreIterator;
|
||||
|
||||
use crate::Cow;
|
||||
use crate::common::Identifier;
|
||||
use crate::error::SassResult;
|
||||
use crate::scope::Scope;
|
||||
@ -15,6 +14,7 @@ use crate::utils::{
|
||||
read_until_closing_paren, read_until_closing_quote, read_until_closing_square_brace,
|
||||
};
|
||||
use crate::value::Value;
|
||||
use crate::Cow;
|
||||
use crate::Token;
|
||||
|
||||
#[derive(Debug, Clone, Eq, PartialEq)]
|
||||
|
@ -1,5 +1,5 @@
|
||||
use std::iter::Iterator;
|
||||
use std::borrow::Borrow;
|
||||
use std::iter::Iterator;
|
||||
|
||||
use codemap::{Span, Spanned};
|
||||
|
||||
|
@ -268,7 +268,9 @@ impl Value {
|
||||
format!("{}{}", self.to_css_string(span)?, s),
|
||||
QuoteKind::Quoted,
|
||||
),
|
||||
Self::Null => Value::String(self.to_css_string(span)?.into_owned(), QuoteKind::None),
|
||||
Self::Null => {
|
||||
Value::String(self.to_css_string(span)?.into_owned(), QuoteKind::None)
|
||||
}
|
||||
_ => Value::String(
|
||||
format!(
|
||||
"{}{}",
|
||||
|
Loading…
x
Reference in New Issue
Block a user