-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update parser and fix some bugs (#23)
- Loading branch information
Showing
14 changed files
with
183 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
tests/fixtures/lib/rules/indentation/2/multiline-value1/input.styl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
div | ||
box-shadow \ | ||
0 0 0 black \ | ||
1 0 0 black \ | ||
0 0 1 black | ||
color: white |
6 changes: 6 additions & 0 deletions
6
tests/fixtures/lib/rules/indentation/2/multiline-value1/output.styl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
div | ||
box-shadow \ | ||
0 0 0 black \ | ||
1 0 0 black \ | ||
0 0 1 black | ||
color: white |
20 changes: 20 additions & 0 deletions
20
tests/fixtures/lib/rules/indentation/2/multiline-value1/warnings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[ | ||
{ | ||
"line": 2, | ||
"column": 5, | ||
"endLine": 5, | ||
"endColumn": 16, | ||
"rule": "stylus/indentation", | ||
"severity": "error", | ||
"text": "Expected indentation of 2 spaces (stylus/indentation)" | ||
}, | ||
{ | ||
"line": 6, | ||
"column": 5, | ||
"endLine": 6, | ||
"endColumn": 17, | ||
"rule": "stylus/indentation", | ||
"severity": "error", | ||
"text": "Expected indentation of 2 spaces (stylus/indentation)" | ||
} | ||
] |
5 changes: 5 additions & 0 deletions
5
tests/fixtures/lib/rules/indentation/2/multiline-value2/input.styl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
div | ||
box-shadow 0 0 0 black \ | ||
1 0 0 black \ | ||
0 0 1 black | ||
color: white |
5 changes: 5 additions & 0 deletions
5
tests/fixtures/lib/rules/indentation/2/multiline-value2/output.styl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
div | ||
box-shadow 0 0 0 black \ | ||
1 0 0 black \ | ||
0 0 1 black | ||
color: white |
20 changes: 20 additions & 0 deletions
20
tests/fixtures/lib/rules/indentation/2/multiline-value2/warnings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[ | ||
{ | ||
"line": 2, | ||
"column": 5, | ||
"endLine": 4, | ||
"endColumn": 16, | ||
"rule": "stylus/indentation", | ||
"severity": "error", | ||
"text": "Expected indentation of 2 spaces (stylus/indentation)" | ||
}, | ||
{ | ||
"line": 5, | ||
"column": 5, | ||
"endLine": 5, | ||
"endColumn": 17, | ||
"rule": "stylus/indentation", | ||
"severity": "error", | ||
"text": "Expected indentation of 2 spaces (stylus/indentation)" | ||
} | ||
] |
16 changes: 16 additions & 0 deletions
16
tests/fixtures/lib/rules/indentation/2/multiline-value3/input.styl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
div | ||
box-shadow 0 0 0 black \ | ||
1 0 0 black \ | ||
0 0 1 black | ||
|
||
div | ||
box-shadow \ | ||
0 0 0 black \ | ||
1 0 0 black \ | ||
0 0 1 black | ||
|
||
div | ||
box-shadow \ | ||
0 0 0 black \ | ||
1 0 0 black \ | ||
0 0 1 black |
16 changes: 16 additions & 0 deletions
16
tests/fixtures/lib/rules/indentation/2/multiline-value3/output.styl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
div | ||
box-shadow 0 0 0 black \ | ||
1 0 0 black \ | ||
0 0 1 black | ||
|
||
div | ||
box-shadow \ | ||
0 0 0 black \ | ||
1 0 0 black \ | ||
0 0 1 black | ||
|
||
div | ||
box-shadow \ | ||
0 0 0 black \ | ||
1 0 0 black \ | ||
0 0 1 black |
47 changes: 47 additions & 0 deletions
47
tests/fixtures/lib/rules/indentation/2/multiline-value3/warnings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
[ | ||
{ | ||
"line": 3, | ||
"column": 14, | ||
"endLine": 3, | ||
"endColumn": 15, | ||
"rule": "stylus/indentation", | ||
"severity": "error", | ||
"text": "Expected indentation of 4 spaces (stylus/indentation)" | ||
}, | ||
{ | ||
"line": 4, | ||
"column": 14, | ||
"endLine": 4, | ||
"endColumn": 15, | ||
"rule": "stylus/indentation", | ||
"severity": "error", | ||
"text": "Expected indentation of 4 spaces (stylus/indentation)" | ||
}, | ||
{ | ||
"line": 8, | ||
"column": 3, | ||
"endLine": 8, | ||
"endColumn": 4, | ||
"rule": "stylus/indentation", | ||
"severity": "error", | ||
"text": "Expected indentation of 4 spaces (stylus/indentation)" | ||
}, | ||
{ | ||
"line": 9, | ||
"column": 3, | ||
"endLine": 9, | ||
"endColumn": 4, | ||
"rule": "stylus/indentation", | ||
"severity": "error", | ||
"text": "Expected indentation of 4 spaces (stylus/indentation)" | ||
}, | ||
{ | ||
"line": 10, | ||
"column": 3, | ||
"endLine": 10, | ||
"endColumn": 4, | ||
"rule": "stylus/indentation", | ||
"severity": "error", | ||
"text": "Expected indentation of 4 spaces (stylus/indentation)" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.someClass | ||
margin-top 5px // comment | ||
#someId | ||
padding 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.someClass | ||
margin-top 5px // comment | ||
#someId | ||
padding 0 |
20 changes: 20 additions & 0 deletions
20
tests/fixtures/lib/rules/indentation/2/test1/warnings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[ | ||
{ | ||
"line": 2, | ||
"column": 5, | ||
"endLine": 2, | ||
"endColumn": 30, | ||
"rule": "stylus/indentation", | ||
"severity": "error", | ||
"text": "Expected indentation of 2 spaces (stylus/indentation)" | ||
}, | ||
{ | ||
"line": 4, | ||
"column": 5, | ||
"endLine": 4, | ||
"endColumn": 14, | ||
"rule": "stylus/indentation", | ||
"severity": "error", | ||
"text": "Expected indentation of 2 spaces (stylus/indentation)" | ||
} | ||
] |