Skip to content

Commit

Permalink
Add a spec for allowing different indentation.
Browse files Browse the repository at this point in the history
This also adds a spec for inconsistent indentation within one parent,
which is still forbidden.

See sass/sass#2176
  • Loading branch information
nex3 committed Jun 8, 2017
1 parent 5c6a5f6 commit 3e3a18b
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/sass/different_indentation/expected_output.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
a {
b: c;
b-d: e;
}

x {
y: z;
}
6 changes: 6 additions & 0 deletions spec/sass/different_indentation/input.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
a
b: c
d: e

x
y: z
4 changes: 4 additions & 0 deletions spec/sass/different_indentation/options.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
:start_version: '3.5'
:todo:
- libsass
3 changes: 3 additions & 0 deletions spec/sass/inconsistent_indentation/error
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Error: Inconsistent indentation: 1 space was used for indentation, but the rest of the document was indented using 4 spaces.
on line 3 of /sass/spec/sass/inconsistent_indentation/input.sass
Use --trace for backtrace.
4 changes: 4 additions & 0 deletions spec/sass/inconsistent_indentation/error-dart-sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Error: Inconsistent indentation, expected 4 spaces.
d: e
^
/sass/spec/sass/inconsistent_indentation/input.sass 3:1
Empty file.
3 changes: 3 additions & 0 deletions spec/sass/inconsistent_indentation/input.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
a
b: c
d: e
1 change: 1 addition & 0 deletions spec/sass/inconsistent_indentation/status
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
65

0 comments on commit 3e3a18b

Please sign in to comment.