Skip to content

Commit

Permalink
Add test reproducing ThisIsManta#49 ThisIsManta#54 and ThisIsManta#55
Browse files Browse the repository at this point in the history
  • Loading branch information
Cactusbone committed Oct 9, 2019
1 parent a27bfa0 commit 1fbe259
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec/bug-49/formattingOptions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"insertColons": false,
"insertSemicolons": false,
"insertBraces": false,
"insertSpaceBeforeComment": true,
"insertSpaceAfterComment": true,
"insertParenthesisAroundIfCondition": true,
"insertLeadingZeroBeforeFraction": false,
"selectorSeparator": "\n",
"quoteChar": "\"",
"tabStopChar": " ",
"alwaysUseZeroWithoutUnit": true
}
29 changes: 29 additions & 0 deletions spec/bug-49/input.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*!
* Some licence
*/
@require "./file.styl"
/**
multi-line comment
*/
.class1, .class2
padding 1px // comment
margin 0px 5px 0px 5px
color alpha(red, 0.5)
@media screen and (min-width 100px)// media comment
if (!condition) // if comment
@extend .class3
else // else comment
background blue

.class // hello there
div
width calc(100% / 3)

.someClass

// todo implement this later

.anotherClass
border 0

// end of file comment
32 changes: 32 additions & 0 deletions spec/bug-49/output.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*!
* Some licence
*/
@require "./file.styl"

/**
multi-line comment
*/
.class1
.class2
padding 1px // comment
margin 0 5px 0 5px
color alpha(red, .5)

@media screen and (min-width 100px) // media comment
if (!condition) // if comment
@extend .class3
else // else comment
background blue

.class // hello there
div
width calc(100% / 3)

.someClass

// todo implement this later

.anotherClass
border 0

// end of file comment

0 comments on commit 1fbe259

Please # to comment.